From 6b57770b135b85b4bbecbc25088a478cf55a9fb8 Mon Sep 17 00:00:00 2001 From: Vladimir Chernyshev Date: Sat, 7 Dec 2019 22:19:28 +0200 Subject: [PATCH] [stable/centrifugo] Helm3: Do not render ClusterIP if it is empty (#19439) Signed-off-by: Vladimir Chernyshev --- stable/centrifugo/Chart.yaml | 2 +- stable/centrifugo/templates/service.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/centrifugo/Chart.yaml b/stable/centrifugo/Chart.yaml index fd02b0af69..34c489420e 100644 --- a/stable/centrifugo/Chart.yaml +++ b/stable/centrifugo/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -version: 3.1.0 +version: 3.1.1 appVersion: 2.1.0 description: Centrifugo is a real-time messaging server. name: centrifugo diff --git a/stable/centrifugo/templates/service.yaml b/stable/centrifugo/templates/service.yaml index ab49305942..02ebd7057e 100644 --- a/stable/centrifugo/templates/service.yaml +++ b/stable/centrifugo/templates/service.yaml @@ -13,7 +13,9 @@ metadata: name: {{ include "centrifugo.fullname" . }} spec: type: "{{ .Values.service.type }}" +{{- if .Values.service.clusterIP }} clusterIP: "{{ .Values.service.clusterIP }}" +{{- end }} {{- if .Values.service.externalIPs }} externalIPs: {{ toYaml .Values.service.externalIPs | indent 4 }}