File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
api/kubernetes/helm-chart/templates Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- {{- if .Values.networkPolicy.enabled - }}
1
+ {{- if .Values.networkPolicy.enabled }}
2
2
apiVersion : networking.k8s.io/v1
3
3
kind : NetworkPolicy
4
4
metadata :
5
5
name : {{ include "cosmotech-api.fullname" . }}-deny-all
6
6
namespace : {{ .Release.Namespace }}
7
7
labels :
8
- {{- include "cosmotech-api.labels" . | nindent 4 }}
8
+ {{- include "cosmotech-api.labels" . | nindent 4 }}
9
9
annotations :
10
10
11
11
" com.cosmotech/description " : " DENY all traffic from other namespaces"
@@ -16,17 +16,17 @@ spec:
16
16
ingress : []
17
17
{{- end }}
18
18
19
+ {{- if .Values.networkPolicy.enabled }}
19
20
---
20
- {{- if .Values.networkPolicy.enabled -}}
21
- kind : NetworkPolicy
22
21
apiVersion : networking.k8s.io/v1
22
+ kind : NetworkPolicy
23
23
metadata :
24
24
name : {{ include "cosmotech-api.fullname" . }}-allow-whitelisted
25
25
namespace : {{ .Release.Namespace }}
26
26
spec :
27
27
podSelector :
28
28
matchLabels :
29
- {{- include "cosmotech-api.defaultNetworkPolicy" . | indent 6 }}
29
+ {{- include "cosmotech-api.defaultNetworkPolicy" . | nindent 6 }}
30
30
ingress :
31
31
- {}
32
32
{{- end }}
You can’t perform that action at this time.
0 commit comments