mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49: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"
|
- name: "{{ include "common.names.fullname" . }}.svc.cluster.local"
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
{{- with .Values.webhook.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 }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
|
@ -119,12 +119,13 @@ webhook:
|
|||||||
# **IMPORTANT**: Do not select the namespace where the webhook
|
# **IMPORTANT**: Do not select the namespace where the webhook
|
||||||
# is deployed to or you will get locking issues.
|
# is deployed to or you will get locking issues.
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchLabels:
|
type: label
|
||||||
routed-gateway: "true"
|
label: "routed-gateway"
|
||||||
# matchExpressions:
|
custom: {}
|
||||||
# - key: notTouch
|
# matchExpressions:
|
||||||
# operator: NotIn
|
# - key: notTouch
|
||||||
# values: ["1"]
|
# operator: NotIn
|
||||||
|
# values: ["1"]
|
||||||
|
|
||||||
# -- default behviour for new PODs in the evaluated namespace
|
# -- default behviour for new PODs in the evaluated namespace
|
||||||
gatewayDefault: true
|
gatewayDefault: true
|
||||||
|
Loading…
Reference in New Issue
Block a user