From cab1b032ddfb25f9b7c6d7d94b42c48cbf630cf1 Mon Sep 17 00:00:00 2001 From: Tomas Pizarro Date: Fri, 25 Jan 2019 14:54:43 +0100 Subject: [PATCH] [stable/parse] Fix to avoid setting null loadBalancerIP (#10897) Signed-off-by: tompizmor --- stable/parse/Chart.yaml | 2 +- stable/parse/templates/svc.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/parse/Chart.yaml b/stable/parse/Chart.yaml index 0605b14b68..2b77d754ab 100644 --- a/stable/parse/Chart.yaml +++ b/stable/parse/Chart.yaml @@ -1,5 +1,5 @@ name: parse -version: 5.1.2 +version: 5.1.3 appVersion: 3.1.2 description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more. keywords: diff --git a/stable/parse/templates/svc.yaml b/stable/parse/templates/svc.yaml index f82c789665..24601b38d3 100644 --- a/stable/parse/templates/svc.yaml +++ b/stable/parse/templates/svc.yaml @@ -9,7 +9,7 @@ metadata: heritage: "{{ .Release.Service }}" spec: type: {{ .Values.service.type }} - {{- if eq .Values.service.type "LoadBalancer" }} + {{- if and (.Values.service.loadBalancerIP) (eq .Values.service.type "LoadBalancer") }} loadBalancerIP: {{ .Values.service.loadBalancerIP | quote }} {{- end }} {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }}