File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2
2
{{- $v := .Values | merge (dict) }}
3
3
{{- $prometheus := dig "managedMonitoring" "prometheus" false $v }}
4
4
{{- $alertmng := dig "managedMonitoring" "alertmanager" false $v }}
5
- {{- if and (not (eq $v.teamId "admin")) (dig "networkPolicy" "ingressPrivate" true $v) }}
5
+ {{- if (not (dig "networkPolicy" "ingressPrivate" true $v)) }}
6
+ ---
7
+ # If team network policies are disabled then we whitelist all traffic to prevent undesired blocking while deploying team workloads
8
+ kind : NetworkPolicy
9
+ apiVersion : networking.k8s.io/v1
10
+ metadata :
11
+ name : default-ingress-allow-all
12
+ labels : {{- include "team-ns.chart-labels" $ | nindent 4 }}
13
+ spec :
14
+ podSelector :
15
+ matchLabels : {}
16
+ ingress :
17
+ - from :
18
+ - namespaceSelector : {}
19
+ {{- else if and (not (eq $v.teamId "admin")) (dig "networkPolicy" "ingressPrivate" true $v) }}
6
20
---
7
21
apiVersion : networking.k8s.io/v1
8
22
kind : NetworkPolicy
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ teamConfig:
30
30
prometheus : true
31
31
networkPolicy :
32
32
egressPublic : true
33
- ingressPrivate : true
33
+ ingressPrivate : false
34
34
oidc :
35
35
groupMapping : somesecretvalue
36
36
resourceQuota :
You can’t perform that action at this time.
0 commit comments