Generate a HelmRelease resource for a given HelmRepository, GitRepository, Bucket, or chart reference source.
ksail workload gen helmrelease [NAME] [flags]
# Generate a HelmRelease with a chart from a HelmRepository source
ksail workload gen helmrelease podinfo \
--source=HelmRepository/podinfo \
--chart-version=">4.0.0" \
# Generate a HelmRelease with a chart from a GitRepository source
ksail workload gen helmrelease podinfo \
--source=GitRepository/podinfo \
--chart=./charts/podinfo \
# Generate a HelmRelease with values from local YAML files
ksail workload gen helmrelease podinfo \
--source=HelmRepository/podinfo \
--values=./my-values1.yaml \
--values=./my-values2.yaml \
# Generate a HelmRelease with values from a Kubernetes secret
ksail workload gen helmrelease podinfo \
--source=HelmRepository/podinfo \
--values-from=Secret/my-secret-values \
# Generate a HelmRelease injecting a literal value (e.g. a config file) at a
# target path without Helm --set interpretation
ksail workload gen helmrelease podinfo \
--source=HelmRepository/podinfo \
--values-from-literal=ConfigMap/app-config/config.json@app.configJson \
# Generate a HelmRelease with a custom release name
ksail workload gen helmrelease podinfo \
--release-name=podinfo-dev \
--source=HelmRepository/podinfo \
# Generate a HelmRelease targeting another namespace
ksail workload gen helmrelease podinfo \
--target-namespace=test \
--create-target-namespace=true \
--source=HelmRepository/podinfo \
# Generate a HelmRelease using a chart reference
ksail workload gen helmrelease podinfo \
--chart-ref=HelmChart/podinfo.flux-system \
# Generate a HelmRelease that waits for its custom resources with CEL health
# checks (evaluated by Flux when wait is on and the poller strategy is used)
ksail workload gen helmrelease sealed-secrets \
--chart-ref=OCIRepository/sealed-secrets-chart \
--health-check-expr="bitnami.com/v1alpha1/SealedSecret=status.conditions.all(c, c.status == 'True')" \
--health-check-expr="bitnami.com/v1alpha1/SealedSecret:failed=status.conditions.all(c, c.status == 'False')" \
--chart string Helm chart name or path
--chart-ref string Helm chart reference (HelmChart/name, OCIRepository/name)
--chart-version string Helm chart version, accepts a semver range
--crds string CRDs policy (Create, CreateReplace, Skip)
--create-target-namespace[=true|false] create the target namespace if not present
--depends-on strings HelmReleases that must be ready before this release
--export[=true|false] export in YAML format to stdout
--health-check-expr stringArray CEL health check for custom resources the release creates, repeatable (<apiVersion>[/<Kind>][:current|inProgress|failed]=<CEL>; field defaults to current)
--interval duration reconciliation interval (default 1m0s)
--kubeconfig-secret-ref string KubeConfig secret reference for remote reconciliation
-n, --namespace string namespace scope for the HelmRelease (default "default")
--post-render-strategy string post-render strategy for sending hooks to post-renderers (nohooks, combined, separate); leave unset to use the controller default
--release-name string name used for the Helm release
--service-account string service account name to impersonate
--source string source that contains the chart (HelmRepository/name, GitRepository/name, Bucket/name)
--storage-namespace string namespace for Helm storage
--target-namespace string namespace to target when performing operations
--timeout duration timeout for any individual Kubernetes operation (default 5m0s)
--values strings local values YAML files
--values-from strings values from ConfigMap or Secret
--values-from-literal strings literal value from a ConfigMap or Secret merged at a target path without Helm's --set interpretation (Kind/Name/valuesKey@targetPath)
--benchmark[=true|false] Show per-activity benchmark output
--config string Path to config file (default: ksail.yaml found via directory traversal)
--experimental[=true|false] Enable experimental (unstable) commands and features