Skip to content

Commit 0ec4f22

Browse files
committed
fix: 4211
quote values in webhook configuration for proper YAML formatting
1 parent 6f5c549 commit 0ec4f22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ webhooks:
4646
operator: NotIn
4747
values:
4848
{{- range $value }}
49-
- {{ . }}
49+
- {{ . | quote }}
5050
{{- end }}
5151
{{- end }}
5252
objectSelector: {{ toYaml .Values.mutatingWebhookObjectSelector | nindent 4 }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ webhooks:
4646
operator: NotIn
4747
values:
4848
{{- range $value }}
49-
- {{ . }}
49+
- {{ . | quote }}
5050
{{- end }}
5151
{{- end }}
5252
objectSelector: {{ toYaml .Values.validatingWebhookObjectSelector | nindent 4 }}

0 commit comments

Comments
 (0)