[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:
Fawaz Mohammed
2019-08-19 06:21:34 -07:00
committed by Kubernetes Prow Robot
parent 7ef3c3feac
commit a47f8289aa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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/
+1 -1
View File
@@ -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")) }}