| Giorgi Lekveishvili | 193b7c0 | 2025-05-22 16:21:37 +0400 | [diff] [blame^] | 1 | {{- if .Values.networkPolicies.enabled }} |
| 2 | apiVersion: networking.k8s.io/v1 |
| 3 | kind: NetworkPolicy |
| 4 | metadata: |
| 5 | name: longhorn-conversion-webhook |
| 6 | namespace: {{ include "release_namespace" . }} |
| 7 | spec: |
| 8 | podSelector: |
| 9 | matchLabels: |
| 10 | longhorn.io/conversion-webhook: longhorn-conversion-webhook |
| 11 | policyTypes: |
| 12 | - Ingress |
| 13 | ingress: |
| 14 | - ports: |
| 15 | - protocol: TCP |
| 16 | port: 9501 |
| 17 | --- |
| 18 | apiVersion: networking.k8s.io/v1 |
| 19 | kind: NetworkPolicy |
| 20 | metadata: |
| 21 | name: longhorn-admission-webhook |
| 22 | namespace: {{ include "release_namespace" . }} |
| 23 | spec: |
| 24 | podSelector: |
| 25 | matchLabels: |
| 26 | longhorn.io/admission-webhook: longhorn-admission-webhook |
| 27 | policyTypes: |
| 28 | - Ingress |
| 29 | ingress: |
| 30 | - ports: |
| 31 | - protocol: TCP |
| 32 | port: 9502 |
| 33 | {{- end }} |