Skip to content

Commit 787970a

Browse files
fix: quote webhook exempt label values (#4557)
Signed-off-by: Zakhar Dvurechensky <72825626+Zakharden@users.noreply.github.com> Co-authored-by: Jaydip Gabani <gabanijaydip@gmail.com>
1 parent da883b0 commit 787970a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/build/helmify/replacements.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ var replacements = map[string]string{
176176
{{- $list = append $value $.Release.Namespace | uniq -}}
177177
{{- end }}
178178
{{- range $list }}
179-
- {{ . }}
179+
- {{ . | quote }}
180180
{{- end }}
181181
{{- end }}`,
182182

@@ -238,7 +238,7 @@ var replacements = map[string]string{
238238
{{- $list = append $value $.Release.Namespace | uniq -}}
239239
{{- end }}
240240
{{- range $list }}
241-
- {{ . }}
241+
- {{ . | quote }}
242242
{{- end }}
243243
{{- end }}`,
244244

manifest_staging/charts/gatekeeper/templates/gatekeeper-mutating-webhook-configuration-mutatingwebhookconfiguration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ webhooks:
5252
{{- $list = append $value $.Release.Namespace | uniq -}}
5353
{{- end }}
5454
{{- range $list }}
55-
- {{ . }}
55+
- {{ . | quote }}
5656
{{- end }}
5757
{{- end }}
5858
objectSelector: {{ toYaml .Values.mutatingWebhookObjectSelector | nindent 4 }}

manifest_staging/charts/gatekeeper/templates/gatekeeper-validating-webhook-configuration-validatingwebhookconfiguration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ webhooks:
5252
{{- $list = append $value $.Release.Namespace | uniq -}}
5353
{{- end }}
5454
{{- range $list }}
55-
- {{ . }}
55+
- {{ . | quote }}
5656
{{- end }}
5757
{{- end }}
5858
objectSelector: {{ toYaml .Values.validatingWebhookObjectSelector | nindent 4 }}

0 commit comments

Comments
 (0)