Skip to content

Commit fe1ef4c

Browse files
committed
chore(seaweedfs): modify networkpolicy when svc type lb
1 parent 8cd7dc8 commit fe1ef4c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

addons/seaweedfs/3/chart/seaweedfs/templates/networkpolicy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ spec:
1515
podSelector:
1616
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
1717
ingress:
18+
{{- if or (eq .Values.master.service.type "LoadBalancer") (eq .Values.filer.service.type "LoadBalancer") (eq .Values.volume.service.type "LoadBalancer") }}
19+
- {}
20+
{{- else }}
1821
# Allow inbound connections
1922
{{- if not .Values.networkPolicy.allowExternal }}
2023
- from:
@@ -39,4 +42,5 @@ spec:
3942
{{- toYaml .Values.networkPolicy.extraFromClauses | nindent 8 }}
4043
{{- end }}
4144
{{- end }}
45+
{{- end }}
4246
{{- end }}

0 commit comments

Comments
 (0)