You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/validatingWebhookConfiguration.yaml
name: {{ template "kube-prometheus-stack.operator.fullname" $ }}{{ if .Values.prometheusOperator.admissionWebhooks.deployment.enabled }}-webhook{{ end }}
109
+
path: /admission-alertmanagerconfigs/validate
110
+
{{- if and .Values.prometheusOperator.admissionWebhooks.caBundle (not .Values.prometheusOperator.admissionWebhooks.patch.enabled) (not .Values.prometheusOperator.admissionWebhooks.certManager.enabled) }}
{{- if or .Values.prometheusOperator.denyNamespaces .Values.prometheusOperator.namespaces .Values.prometheusOperator.admissionWebhooks.namespaceSelector }}
117
+
namespaceSelector:
118
+
{{- with (omit .Values.prometheusOperator.admissionWebhooks.namespaceSelector "matchExpressions") }}
119
+
{{- toYaml . | nindent 6 }}
120
+
{{- end }}
121
+
{{- if or .Values.prometheusOperator.denyNamespaces .Values.prometheusOperator.namespaces .Values.prometheusOperator.admissionWebhooks.namespaceSelector.matchExpressions }}
122
+
matchExpressions:
123
+
{{- with (.Values.prometheusOperator.admissionWebhooks.namespaceSelector.matchExpressions) }}
124
+
{{- toYaml . | nindent 8 }}
125
+
{{- end }}
126
+
{{- if .Values.prometheusOperator.denyNamespaces }}
127
+
- key: kubernetes.io/metadata.name
128
+
operator: NotIn
129
+
values:
130
+
{{- range $namespace := mustUniq .Values.prometheusOperator.denyNamespaces }}
131
+
- {{ $namespace }}
132
+
{{- end }}
133
+
{{- else if and .Values.prometheusOperator.namespaces .Values.prometheusOperator.namespaces.additional }}
134
+
- key: kubernetes.io/metadata.name
135
+
operator: In
136
+
values:
137
+
{{- if and .Values.prometheusOperator.namespaces.releaseNamespace (default .Values.prometheusOperator.namespaces.releaseNamespace true) }}
0 commit comments