We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cd7dc8 commit fe1ef4cCopy full SHA for fe1ef4c
1 file changed
addons/seaweedfs/3/chart/seaweedfs/templates/networkpolicy.yaml
@@ -15,6 +15,9 @@ spec:
15
podSelector:
16
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
17
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 }}
21
# Allow inbound connections
22
{{- if not .Values.networkPolicy.allowExternal }}
23
- from:
@@ -39,4 +42,5 @@ spec:
39
42
{{- toYaml .Values.networkPolicy.extraFromClauses | nindent 8 }}
40
43
{{- end }}
41
44
45
+ {{- end }}
46
0 commit comments