Render a Kustomize overlay
Build a Kustomize directory into plain Kubernetes YAML and save it to a file, ready for kubectl-apply or a policy check.
Install v1.0.0
Installs the template into your Argo namespace. The URL is pinned to this version.
kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/kustomize-build/1.0.0/template.yaml
Or with the Argo CLI:
argo template create -n argo https://catalog.dagweave.com/api/v1/items/kustomize-build/1.0.0/template.yaml
Facts
- Category
- Kubernetes
- Tags
- kubectl kubernetes
- Entrypoint
build- Template SHA-256
bafe899861130d57ff987e053f930c3134905919b0b2c47ef0617995559bf600- Source
- kustomize-build at catalog commit 67458f7
- API
- item document, latest template.yaml
Images and provenance
Every image is pinned by digest, so a rebuilt tag can never change what this version runs.
| Repository | Tag | Digest |
|---|---|---|
cgr.dev/chainguard/kubectl | latest-dev | sha256:98f9c337808ecf5d5e80b79af4345762a3d8c803ebf8c857d2dddabf885107ba |
Parameters
| Name | Description | Default |
|---|---|---|
path required |
Directory that holds the kustomization.yaml. Example /work/deploy/overlays/prod |
none |
enable-helm |
Set to "true" to let the build inflate Helm charts the kustomization lists. One of true, false |
false |
output-path |
File to write the rendered YAML to. | /work/rendered.yaml |
WorkflowTemplate
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: kustomize-build
labels:
dagweave.io/catalog-item: kustomize-build
annotations:
dagweave.io/catalog-version: "1.0.0"
dagweave.io/catalog-category: "Kubernetes"
spec:
entrypoint: build
templates:
- name: build
inputs:
parameters:
- name: path
- name: output-path
default: "/work/rendered.yaml"
- name: enable-helm
default: "false"
retryStrategy:
limit: "2"
retryPolicy: OnError
backoff:
duration: 10s
factor: "2"
maxDuration: 2m
container:
# cgr.dev/chainguard/kubectl:latest-dev
image: cgr.dev/chainguard/kubectl@sha256:98f9c337808ecf5d5e80b79af4345762a3d8c803ebf8c857d2dddabf885107ba
command: [sh, -c]
args:
- |
set -eu
set -- kustomize "${KUSTOMIZE_PATH}"
if [ "${ENABLE_HELM}" = "true" ]; then set -- "$@" --enable-helm; fi
kubectl "$@" > "${OUTPUT_PATH}"
echo "wrote $(grep -c '^kind:' "${OUTPUT_PATH}") resources to ${OUTPUT_PATH}"
env:
- name: KUSTOMIZE_PATH
value: "{{inputs.parameters.path}}"
- name: OUTPUT_PATH
value: "{{inputs.parameters.output-path}}"
- name: ENABLE_HELM
value: "{{inputs.parameters.enable-helm}}"
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
memory: 512Mi
securityContext:
runAsUser: 0
Version history
Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.
-
1.0.0 latest 2026-10-18
Initial release.
kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/kustomize-build/1.0.0/template.yamlargo template create -n argo https://catalog.dagweave.com/api/v1/items/kustomize-build/1.0.0/template.yaml
Run it once
After installing, from the command line.
argo submit -n argo --from workflowtemplate/kustomize-build \
-p path=/work/deploy/overlays/prod
Workflow that references it
A Workflow with the required parameters filled from the examples.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: kustomize-build-
spec:
workflowTemplateRef:
name: kustomize-build
arguments:
parameters:
- name: path
value: "/work/deploy/overlays/prod"
As a step of a larger workflow
steps:
- - name: kustomize-build
templateRef:
name: kustomize-build
template: build