Skip to content

Commit

Permalink
feat(helm) add egress-rule to netpol
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickSpies committed Oct 19, 2023
1 parent 508038a commit fd52f22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ spec:
{{- end }}
policyTypes:
- Ingress
- Egress
ingress:
- ports:
- port: http
{{- with .Values.reloader.netpol.from}}
from:
{{- toYaml .| nindent 8 }}
{{- end }}
egress:
- ports:
- port: 443
{{- with .Values.reloader.netpol.from}}
to:
{{- toYaml .| nindent 8 }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions deployments/kubernetes/chart/reloader/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,6 @@ reloader:
# - podSelector:
# matchLabels:
# app.kubernetes.io/name: prometheus
to: []

webhookUrl: ""

0 comments on commit fd52f22

Please sign in to comment.