blob: f74c2fbf32c43015ba19d166c351eb0fe8d42089 [file] [log] [blame]
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +04001{{- if .Values.controller.admissionWebhooks.enabled }}
2{{- if .Values.controller.admissionWebhooks.networkPolicyEnabled }}
3
4apiVersion: networking.k8s.io/v1
5kind: NetworkPolicy
6metadata:
7 name: {{ include "ingress-nginx.fullname" . }}-webhooks-allow
8 namespace: {{ .Release.Namespace }}
9spec:
10 ingress:
11 - {}
12 podSelector:
13 matchLabels:
14 app.kubernetes.io/name: {{ include "ingress-nginx.name" . }}
15 policyTypes:
16 - Ingress
17
18{{- end }}
19{{- end }}