Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions chart/templates/network-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
matchLabels: {{ include "labels.standard" . | nindent 6 }}
policyTypes:
{{- if .Values.networkPolicy.ingress.enabled }}
{{- if not .Values.networkPolicy.ingress.allowedBlocks }}
{{- fail "networkPolicy.ingress.enabled needs networkPolicy.ingress.allowedBlocks: a rule with no peers under `from` matches every source, so an empty list would open the port instead of restricting it" }}
{{- end }}
- Ingress
{{- end }}
- Egress
Expand Down
Loading