-
Notifications
You must be signed in to change notification settings - Fork 509
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
fix(operator): feature gates map allows add empty items #1463
base: main
Are you sure you want to change the base?
fix(operator): feature gates map allows add empty items #1463
Conversation
{{- if $v -}} | ||
{{- $list = append $list (printf "%s=true" $k) -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone explicitly set asdsadsa.adsads2: false
we should disable that feature gate. Let's add an else
case to set -asdsadsa.adsads2
{{- if $v -}} | ||
{{- $list = append $list (printf "%s=true" $k) -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feature gates are not enabled with =true
. If the value is true the key should be added to the list, but nothing additional is needed.
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
When you have a feature flag with the value defined as
false
, the rendered string will contain a empty comma and this triggers a failure in the operator.An example in the Helm playground.