Skip to content

Commit

Permalink
Merge pull request #1438 from dduportal/fix/rsyncd/svc-lb-whitelist
Browse files Browse the repository at this point in the history
fix(rsyncd) service: do not specify an empty 'loadBalancerSourceRanges' when using a LB with no whiteliste specified
  • Loading branch information
dduportal authored Nov 25, 2024
2 parents f867abd + 49fdd17 commit a446219
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/rsyncd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: rsyncd helm chart for Kubernetes
name: rsyncd
version: 2.0.1
version: 2.0.2
maintainers:
- email: jenkins-infra-team@googlegroups.com
name: jenkins-infra-team
8 changes: 5 additions & 3 deletions charts/rsyncd/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ metadata:
spec:
type: {{ .Values.service.type }}
{{- if eq .Values.service.type "LoadBalancer" }}
{{- with .Values.service.LoadBalancerIP }}
{{- with .Values.service.LoadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
{{- with .Values.service.whitelisted_sources }}
loadBalancerSourceRanges:
{{- range .Values.service.whitelisted_sources }}
{{- range . }}
- {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
ports:
Expand Down

0 comments on commit a446219

Please sign in to comment.