mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-02 23:39:03 +00:00
fix: allow custom selectors without dict merges
This commit is contained in:
parent
f1d6009768
commit
fb898031b4
@ -10,7 +10,12 @@ webhooks:
|
||||
- name: "{{ include "common.names.fullname" . }}.svc.cluster.local"
|
||||
namespaceSelector:
|
||||
{{- with .Values.webhook.namespaceSelector }}
|
||||
{{ toYaml . | nindent 4 }}
|
||||
{{- if eq .type "label" }}
|
||||
matchLabels:
|
||||
{{ .label }}: "true"
|
||||
{{- else if eq .type "custom" }}
|
||||
{{- toYaml .custom | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
|
@ -119,8 +119,9 @@ webhook:
|
||||
# **IMPORTANT**: Do not select the namespace where the webhook
|
||||
# is deployed to or you will get locking issues.
|
||||
namespaceSelector:
|
||||
matchLabels:
|
||||
routed-gateway: "true"
|
||||
type: label
|
||||
label: "routed-gateway"
|
||||
custom: {}
|
||||
# matchExpressions:
|
||||
# - key: notTouch
|
||||
# operator: NotIn
|
||||
|
Loading…
Reference in New Issue
Block a user