-
Notifications
You must be signed in to change notification settings - Fork 642
fix(helm): followup PR 12879 in Helm #11140
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
Conversation
helm/helm#12879 modified merging values for sub-charts in a non-backwards compatible way. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
operations/helm/charts/mimir-distributed/templates/validate.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
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.
LGTM, thanks!
{{- with .Values.rollout_operator.podSecurityContext -}} | ||
{{- if hasKey . "fsGroup" -}} | ||
{{- if ne .fsGroup nil -}} | ||
{{- fail "You have selected rbac.type=scc, you must set the value of fsGroup to null in rollout_operator.podSecurityContext" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- if hasKey . "runAsGroup" -}} | ||
{{- if ne .runAsGroup nil -}} | ||
{{- fail "You have selected rbac.type=scc, you must set the value of runAsGroup to null in rollout_operator.podSecurityContext" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- if hasKey . "runAsUser" -}} | ||
{{- if ne .runAsUser nil -}} | ||
{{- fail "You have selected rbac.type=scc, you must set the value of runAsUser to null in rollout_operator.podSecurityContext" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} |
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.
This code compares values to nil and then states they have to be set to null and the error messages aren't specific. The code block above this (lines 248-254) is I think what is needed here. I set fsGroup, runAsGroup, runAsUser under rollout_operator.podSecurityContext to null in my values.yaml file and the error is triggering. Setting the values to nil does not work either.
What this PR does
helm/helm#12879 modified merging values for sub-charts in a non-backwards compatible way.
Which issue(s) this PR fixes or relates to
NA
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.