mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/odoo checking if service type is loadBalancer before assiging loadBalancerIP in the service template (#16388)
Signed-off-by: fawaz-moh <fawaz.moh.ibraheem@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
7ef3c3feac
commit
a47f8289aa
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: odoo
|
||||
version: 10.0.1
|
||||
version: 10.0.2
|
||||
appVersion: 12.0.20190715
|
||||
description: A suite of web based open source business apps.
|
||||
home: https://www.odoo.com/
|
||||
|
||||
@@ -9,7 +9,7 @@ metadata:
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
{{- if .Values.service.loadBalancerIP }}
|
||||
{{- if (and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP))) }}
|
||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||
{{- end }}
|
||||
{{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }}
|
||||
|
||||
Reference in New Issue
Block a user