We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7e6b3c + d89239e commit 0d87a06Copy full SHA for 0d87a06
snyk-monitor/templates/networkpolicy.yaml
@@ -1,3 +1,4 @@
1
+{{- if .Values.networkPolicy.enabled }}
2
apiVersion: networking.k8s.io/v1
3
kind: NetworkPolicy
4
metadata:
@@ -19,4 +20,7 @@ spec:
19
20
# Ingress is denied hence there is no "ingress" block.
21
# Egress is allowed for any traffic.
22
egress:
- - {}
23
+ {{- with .Values.networkPolicy.egress }}
24
+ {{- toYaml . | trim | nindent 2 -}}
25
+ {{- end }}
26
+{{- end }}
snyk-monitor/values.yaml
@@ -106,6 +106,12 @@ metadata:
106
labels: {}
107
annotations: {}
108
109
+# Override the NetworkPolicy
110
+networkPolicy:
111
+ enabled: true
112
+ egress:
113
+ - {}
114
+
115
psp:
116
enabled: false
117
name: ""
0 commit comments