cub helm template
cub helm template
Render a Helm chart's templates locally
Synopsis
Render a Helm chart's templates to stdout or to a local directory. This command does not require a ConfigHub server connection.
It loads a chart from configured Helm repositories, renders templates with the provided values, splits CRDs from regular resources, and outputs the result.
By default, rendered YAML is written to stdout. Use --output-dir to write separate files for CRDs and resources.
Examples:
# Render nginx chart to stdout
cub helm template my-nginx bitnami/nginx --version 15.5.2
# Render with custom values to stdout
cub helm template my-nginx bitnami/nginx --version 15.5.2 -f values.yaml --set image.tag=latest
# Render to a directory (creates my-nginx.yaml and my-nginx-crds.yaml)
cub helm template my-nginx bitnami/nginx --version 15.5.2 --output-dir ./out
# Render cert-manager with namespace
cub helm template cert-manager jetstack/cert-manager --version v1.17.1 --namespace cert-manager --output-dir ./out
cub helm template <release-name> <repo>/<chartname> [flags]
Options
-h, --help help for template
--namespace string namespace for the release (used during template rendering) (default "default")
--output-dir string write rendered YAML files to this directory instead of stdout
--repo string specify the chart repository URL where to locate the requested chart
--set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
--skip-crds if set, no CRDs from the chart's crds/ directory will be rendered (does not affect templated CRDs)
--use-placeholder use confighubplaceholder placeholder for rendering
-f, --values stringArray specify values in a YAML file or a URL (can specify multiple)
--version string specify a version constraint for the chart version to use. This constraint can be a specific tag (e.g. 1.1.1) or range (e.g. ^2.0.0)
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
--space string space ID to perform command on
SEE ALSO
- cub helm - Helm commands