Skip to content

Commit

Permalink
adds more extensive options for svc type LoadBalancer (#35)
Browse files Browse the repository at this point in the history
LoadBalancer type allows additional values for loadBalancerIP (setting the desired LB IP) as well as externalTrafficPolicy.
  • Loading branch information
wagnst committed Jul 31, 2024
1 parent 088e654 commit 92cf5ee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions charts/zwave-js-ui/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,23 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if (or (eq .Values.service.type "ClusterIP") (empty .Values.service.type)) }}
type: ClusterIP
{{- else if eq .Values.service.type "LoadBalancer" }}
type: {{ .Values.service.type }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }}
{{- end -}}
{{- else }}
type: {{ .Values.service.type }}
{{- end }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
{{- with .Values.ports.ui }}
- port: {{ .servicePort }}
Expand Down

0 comments on commit 92cf5ee

Please sign in to comment.