Skip to content

Commit ae889ab

Browse files
authored
Corrected podSelector for NetworkPolicy (#42)
1 parent 7c92906 commit ae889ab

File tree

4 files changed

+30
-15
lines changed

4 files changed

+30
-15
lines changed

charts/relution/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sources:
1111

1212
type: application
1313

14-
version: 2.7.1-1
14+
version: 3.0.0-1
1515

1616
appVersion: "5.34.0"
1717

charts/relution/ci/full-values.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,17 @@ mariadb:
106106

107107
networkPolicy:
108108
enabled: true
109-
spec:
110-
policyTypes:
111-
- Ingress
112-
- Egress
113-
ingress:
114-
- from:
115-
- ipBlock:
116-
cidr: "0.0.0.0/0"
117-
egress:
118-
- to:
119-
- ipBlock:
120-
cidr: "0.0.0.0/0"
109+
policyTypes:
110+
- Ingress
111+
- Egress
112+
ingress:
113+
- from:
114+
- ipBlock:
115+
cidr: "0.0.0.0/0"
116+
egress:
117+
- to:
118+
- ipBlock:
119+
cidr: "0.0.0.0/0"
121120

122121
s2s:
123122
enabled: true

charts/relution/templates/networkpolicy.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,19 @@ metadata:
66
labels:
77
{{- include "relution.labels" . | nindent 4 }}
88
spec:
9-
{{- .Values.networkPolicy.spec | toYaml | nindent 2 -}}
9+
podSelector:
10+
matchLabels:
11+
{{- include "relution.selectorLabels" . | nindent 6 }}
12+
{{- with .Values.networkPolicy.egress }}
13+
egress:
14+
{{- toYaml . | nindent 4 }}
15+
{{- end }}
16+
{{- with .Values.networkPolicy.ingress }}
17+
ingress:
18+
{{- toYaml . | nindent 4 }}
19+
{{- end }}
20+
{{- with .Values.networkPolicy.policyTypes }}
21+
policyTypes:
22+
{{- toYaml . | nindent 4 }}
23+
{{- end }}
1024
{{- end }}

charts/relution/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ mariadb:
208208

209209
networkPolicy:
210210
enabled: false
211-
spec: {}
211+
ingress: {}
212+
egress: {}
213+
policyTypes: []
212214

213215
s2s:
214216
enabled: false

0 commit comments

Comments
 (0)