Add provision to specify loadBalancerSourceRanges for Argo UI LoadBalancer service resource. (#44)

This commit is contained in:
Jeev B 2019-04-16 11:29:45 -07:00 committed by Alex Collins
parent 51ab61d986
commit 97bc21a6eb
2 changed files with 7 additions and 1 deletions

View file

@ -18,3 +18,6 @@ spec:
app: {{ .Release.Name }}-{{ .Values.ui.name }}
sessionAffinity: None
type: {{ .Values.ui.serviceType }}
{{- if and (eq .Values.ui.serviceType "LoadBalancer") .Values.ui.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.ui.loadBalancerSourceRanges | indent 4 }}{{- end }}

View file

@ -40,7 +40,10 @@ ui:
serviceAccount: argo-ui
# Annotations to be applied to the UI Service
serviceAnnotations: {}
# Source ranges to allow access to service from. Only applies to
# service type `LoadBalancer`
loadBalancerSourceRanges: []
## Ingress configuration.
## ref: https://kubernetes.io/docs/user-guide/ingress/
##