Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm: Impossible to pass extraArg argument with 'false' value #6202

Closed
mKaloer opened this issue Sep 21, 2020 · 0 comments · Fixed by #6203
Closed

Helm: Impossible to pass extraArg argument with 'false' value #6202

mKaloer opened this issue Sep 21, 2020 · 0 comments · Fixed by #6203

Comments

@mKaloer
Copy link

mKaloer commented Sep 21, 2020

When using ingress-nginx with Helm, it is impossible to pass a "false" value in the controller.extraArgs value. Since the value evaluates to false, the Helm template assumes that it is nil and hence a flag. Specifically, I'm trying to pass --set controller.extraArgs.metrics-per-host=false, which is passed as --metrics-per-host instead of --metrics-per-host=false.

The relevant template lines are here:

{{- range $key, $value := .Values.controller.extraArgs }}
{{- if $value }}
- --{{ $key }}={{ $value }}
{{- else }}
- --{{ $key }}
{{- end }}
{{- end }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant