Skip to content

Commit 8279dd9

Browse files
authored
Merge pull request #864 from Cosmo-Tech/DSE/fix_helm_lint_PROD-14247
fix: correct chart template errors
2 parents dcf1f09 + e45a217 commit 8279dd9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
{{- if .Values.networkPolicy.enabled -}}
1+
{{- if .Values.networkPolicy.enabled }}
22
apiVersion: networking.k8s.io/v1
33
kind: NetworkPolicy
44
metadata:
55
name: {{ include "cosmotech-api.fullname" . }}-deny-all
66
namespace: {{ .Release.Namespace }}
77
labels:
8-
{{- include "cosmotech-api.labels" . | nindent 4 }}
8+
{{- include "cosmotech-api.labels" . | nindent 4 }}
99
annotations:
1010
1111
"com.cosmotech/description": "DENY all traffic from other namespaces"
@@ -16,17 +16,17 @@ spec:
1616
ingress: []
1717
{{- end }}
1818

19+
{{- if .Values.networkPolicy.enabled }}
1920
---
20-
{{- if .Values.networkPolicy.enabled -}}
21-
kind: NetworkPolicy
2221
apiVersion: networking.k8s.io/v1
22+
kind: NetworkPolicy
2323
metadata:
2424
name: {{ include "cosmotech-api.fullname" . }}-allow-whitelisted
2525
namespace: {{ .Release.Namespace }}
2626
spec:
2727
podSelector:
2828
matchLabels:
29-
{{- include "cosmotech-api.defaultNetworkPolicy" . | indent 6}}
29+
{{- include "cosmotech-api.defaultNetworkPolicy" . | nindent 6 }}
3030
ingress:
3131
- {}
3232
{{- end }}

0 commit comments

Comments
 (0)