helmfile
helmfile copied to clipboard
helm lint and list ignore enabled condition
helmfile list shows enabled while chart is disabled, same issue for helm lint, helm lint would try to lint releases with values for environments that is not enabled for.
helmfile version
helmfile version v0.137.0
helmfile -f helmfile.yaml -e staging list
NAME NAMESPACE ENABLED LABELS
kube-prometheus-stack xxxx true chart:kube-prometheus-stack
bases:
- ../envs/environments.yaml
releases:
- name: kube-prometheus-stack
labels:
chart: kube-prometheus-stack
chart: ../charts/kube-prometheus-stack
condition: prometheus.enabled
envs
prometheus:
enabled: false
The mentioned PR does not handle list command. By the way the column Enabled in list command does not correspond to condition field, but installed field. I propose that you open an issue to use the right word for the output of this command.
https://github.com/roboll/helmfile/blob/2618cfb38b20d867a977f2b295059893d23e507a/pkg/app/app.go#L514