File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ Kubernetes: `>=1.20.0-0`
249
249
| controller.admissionWebhooks.key | string | `"/usr/local/certificates/key"` | |
250
250
| controller.admissionWebhooks.labels | object | `{}` | Labels to be added to admission webhooks |
251
251
| controller.admissionWebhooks.namespaceSelector | object | `{}` | |
252
+ | controller.admissionWebhooks.networkPolicyEnabled | bool | `false` | |
252
253
| controller.admissionWebhooks.objectSelector | object | `{}` | |
253
254
| controller.admissionWebhooks.patch.enabled | bool | `true` | |
254
255
| controller.admissionWebhooks.patch.fsGroup | int | `2000` | |
Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change @@ -615,6 +615,7 @@ controller:
615
615
616
616
# -- Use an existing PSP instead of creating one
617
617
existingPsp : " "
618
+ networkPolicyEnabled : false
618
619
619
620
service :
620
621
annotations : {}
You can’t perform that action at this time.
0 commit comments