3838 matchLabels :
3939 kubernetes.io/metadata.name : {{ .Release.Namespace }}
4040 {{- end }}
41+ {{- if .Values.enableV1Services }}
4142 - podSelector :
4243 matchLabels :
4344 app : event-log
5657 namespaceSelector :
5758 matchLabels :
5859 kubernetes.io/metadata.name : {{ .Release.Namespace }}
60+ {{- end }}
5961 - podSelector :
6062 matchLabels :
6163 app : post-install-postgres
@@ -288,6 +290,7 @@ spec:
288290 ports :
289291 - protocol : TCP
290292 port : http
293+ {{- if .Values.enableV1Services }}
291294---
292295apiVersion : networking.k8s.io/v1
293296kind : NetworkPolicy
@@ -366,6 +369,7 @@ spec:
366369 ports :
367370 - protocol : TCP
368371 port : http-kg
372+ {{- end }}
369373---
370374apiVersion : networking.k8s.io/v1
371375kind : NetworkPolicy
@@ -467,6 +471,7 @@ spec:
467471 - protocol : TCP
468472 port : http
469473{{- end }}
474+ {{- if .Values.enableV1Services }}
470475---
471476apiVersion : networking.k8s.io/v1
472477kind : NetworkPolicy
@@ -491,6 +496,7 @@ spec:
491496 ports :
492497 - protocol : TCP
493498 port : http-webhook-sv
499+ {{- end }}
494500---
495501apiVersion : networking.k8s.io/v1
496502kind : NetworkPolicy
@@ -546,6 +552,7 @@ spec:
546552 port : http
547553 - protocol : TCP
548554 port : grpc
555+ {{- if .Values.enableV1Services }}
549556---
550557apiVersion : networking.k8s.io/v1
551558kind : NetworkPolicy
@@ -571,6 +578,7 @@ spec:
571578 ports :
572579 - protocol : TCP
573580 port : http
581+ {{- end }}
574582{{- if .Values.redis.install }}
575583---
576584apiVersion : networking.k8s.io/v1
@@ -713,6 +721,7 @@ spec:
713721 - from :
714722 - ipBlock :
715723 cidr : 0.0.0.0/0
724+ {{- if .Values.enableV1Services }}
716725---
717726apiVersion : networking.k8s.io/v1
718727kind : NetworkPolicy
@@ -925,6 +934,7 @@ spec:
925934 ports :
926935 - protocol : TCP
927936 port : http
937+ {{- end }}
928938---
929939apiVersion : networking.k8s.io/v1
930940kind : NetworkPolicy
@@ -954,6 +964,7 @@ spec:
954964 ports :
955965 - protocol : TCP
956966 port : http
967+ {{- if .Values.enableV1Services }}
957968---
958969apiVersion : networking.k8s.io/v1
959970kind : NetworkPolicy
@@ -982,6 +993,7 @@ spec:
982993 ports :
983994 - protocol : TCP
984995 port : http
996+ {{- end }}
985997---
986998apiVersion : networking.k8s.io/v1
987999kind : NetworkPolicy
@@ -1009,6 +1021,7 @@ spec:
10091021 ports :
10101022 - protocol : TCP
10111023 port : http
1024+ {{- if .Values.enableV1Services }}
10121025---
10131026apiVersion : networking.k8s.io/v1
10141027kind : NetworkPolicy
@@ -1053,6 +1066,7 @@ spec:
10531066 app.kubernetes.io/name : amalthea
10541067 policyTypes :
10551068 - Egress
1069+ {{- end }}
10561070---
10571071apiVersion : networking.k8s.io/v1
10581072kind : NetworkPolicy
0 commit comments