| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 1 | {{- if .Values.webhook.networkPolicy.enabled }} |
| Giorgi Lekveishvili | ea328da | 2026-07-29 12:15:15 +0400 | [diff] [blame^] | 2 | |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 3 | apiVersion: networking.k8s.io/v1 |
| 4 | kind: NetworkPolicy |
| 5 | metadata: |
| Giorgi Lekveishvili | ea328da | 2026-07-29 12:15:15 +0400 | [diff] [blame^] | 6 | name: {{ template "webhook.fullname" . }}-allow-ingress |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 7 | namespace: {{ include "cert-manager.namespace" . }} |
| 8 | spec: |
| Giorgi Lekveishvili | ea328da | 2026-07-29 12:15:15 +0400 | [diff] [blame^] | 9 | ingress: |
| 10 | {{- with .Values.webhook.networkPolicy.ingress }} |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 11 | {{- toYaml . | nindent 2 }} |
| 12 | {{- end }} |
| 13 | podSelector: |
| 14 | matchLabels: |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 15 | app.kubernetes.io/name: {{ include "webhook.name" . }} |
| 16 | app.kubernetes.io/instance: {{ .Release.Name }} |
| 17 | app.kubernetes.io/component: "webhook" |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 18 | policyTypes: |
| Giorgi Lekveishvili | ea328da | 2026-07-29 12:15:15 +0400 | [diff] [blame^] | 19 | - Ingress |
| 20 | |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 21 | {{- end }} |