Skip to content

Commit

Permalink
added validatingWebhookExemptNamespacesLabels to admitlabel webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaardsholt authored Nov 6, 2023
1 parent 384150f commit 2a0c7cd
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ webhooks:
operator: NotIn
values:
- {{ .Release.Namespace }}

{{- range $key, $value := .Values.validatingWebhookExemptNamespacesLabels}}
- key: {{ $key }}
operator: NotIn
Expand Down Expand Up @@ -98,6 +98,15 @@ webhooks:
operator: NotIn
values:
- {{ .Release.Namespace }}

{{- range $key, $value := .Values.validatingWebhookExemptNamespacesLabels}}
- key: {{ $key }}
operator: NotIn
values:
{{- range $value }}
- {{ . }}
{{- end }}
{{- end }}
rules:
- apiGroups:
- ""
Expand Down

0 comments on commit 2a0c7cd

Please sign in to comment.