From a47f8289aae462f92508a28db11ef9dfa638b129 Mon Sep 17 00:00:00 2001 From: Fawaz Mohammed Date: Mon, 19 Aug 2019 16:21:34 +0300 Subject: [PATCH] [stable/odoo checking if service type is loadBalancer before assiging loadBalancerIP in the service template (#16388) Signed-off-by: fawaz-moh --- stable/odoo/Chart.yaml | 2 +- stable/odoo/templates/svc.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/odoo/Chart.yaml b/stable/odoo/Chart.yaml index bfef6b5055..e435135af2 100644 --- a/stable/odoo/Chart.yaml +++ b/stable/odoo/Chart.yaml @@ -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/ diff --git a/stable/odoo/templates/svc.yaml b/stable/odoo/templates/svc.yaml index d0c8a4663e..cd9296fedd 100644 --- a/stable/odoo/templates/svc.yaml +++ b/stable/odoo/templates/svc.yaml @@ -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")) }}