Skip to content

Conversation

krajorama
Copy link
Contributor

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

  • Tests updated.
  • [NA] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [NA] about-versioning.md updated with experimental features.

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>
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>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@krajorama krajorama marked this pull request as ready for review April 7, 2025 10:15
@krajorama krajorama requested a review from a team as a code owner April 7, 2025 10:15
Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@aknuds1 aknuds1 merged commit d94bb23 into main Apr 7, 2025
28 checks passed
@aknuds1 aknuds1 deleted the krajo/fix branch April 7, 2025 10:23
Comment on lines +257 to +273
{{- 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 -}}
Copy link

@cookew cookew Jun 22, 2025

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.

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 this pull request may close these issues.

3 participants