You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
k8s: kustomize roots with helmCharts cannot render; --enable-helm is never passed #5112
A kustomization with a helmCharts entry renders only when kustomize is given --enable-helm. The k8s lexicon builds the render command with no flags, so every such root declared in k8s.kustomize.roots fails with kustomize's own error and its objects never reach the build, post-synth checks or lifecycle diff. On kubernetes/k8s.io, 10 of 35 kustomizations use helmCharts (8 datadog roots, kubernetes/gke-utility/monitoring and kubernetes/eks-prow-build/kube-system), and all 10 failed:
error: trouble configuring builtin HelmChartInflationGenerator with config: ... : must specify --enable-helm
Today
renderCommand in lexicons/k8s/src/kustomize/render.ts returns kustomize build '<dir>' or kubectl kustomize '<dir>', and the kustomize.roots entry in lexicons/k8s/src/config.ts takes path and patches only. The build-time root (lexicons/k8s/src/kustomize/root.ts), the deploy-time render (lexicons/k8s/src/components/kustomize-apply.ts) and the workspace graph reader (lexicons/k8s/src/workspace-member.ts) all render through renderKustomizeDocuments with that one command.
Wanted
A kustomize.roots entry can ask for Helm inflation, for example { path, enableHelm: true } (the field name is a decision). The render then passes --enable-helm to either binary, and --helm-command when the entry names a helm binary.
With inflation off (the default), a root that has helmCharts fails with a message that names the entry and the option, in place of kustomize's text alone.
Offline use is stated: kustomize pulls a chart that is not already in the root's chart home (helmGlobals.chartHome, default charts/). The docs say so, and a render with no network and no cached chart fails naming the chart.
The workspace graph reader for a kustomize member has the same option, so a member with helmCharts can be read when the user allows it.
Not in this
Reading helmCharts entries as data with no render, which #5100 covers. Typechecking the values files, which #5086 covers.
Found while reading kubernetes/k8s.io offline, for #5067. Tracked on #5105.
Activity
feat: estate-read batch 3, Terraform and k8s lint precision, Helm ren…