| Giorgi Lekveishvili | cccf72f | 2023-05-19 16:13:22 +0400 | [diff] [blame^] | 1 | {{- if .Values.controller.admissionWebhooks.enabled }} |
| 2 | {{- if .Values.controller.admissionWebhooks.networkPolicyEnabled }} |
| 3 | |
| 4 | apiVersion: networking.k8s.io/v1 |
| 5 | kind: NetworkPolicy |
| 6 | metadata: |
| 7 | name: {{ include "ingress-nginx.fullname" . }}-webhooks-allow |
| 8 | namespace: {{ .Release.Namespace }} |
| 9 | spec: |
| 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 }} |