From 8d07cedc4e8d027871a476ac0da1725bb5cc423e Mon Sep 17 00:00:00 2001 From: tompizmor Date: Wed, 5 Sep 2018 16:06:03 +0200 Subject: [PATCH] Fix issue rendering zookeeper template --- bitnami/zookeeper/Chart.yaml | 2 +- bitnami/zookeeper/templates/statefulset.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bitnami/zookeeper/Chart.yaml b/bitnami/zookeeper/Chart.yaml index 169c150e5..7d705b6d6 100644 --- a/bitnami/zookeeper/Chart.yaml +++ b/bitnami/zookeeper/Chart.yaml @@ -1,5 +1,5 @@ name: zookeeper -version: 0.0.6 +version: 0.0.7 appVersion: 3.4.12 description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications. keywords: diff --git a/bitnami/zookeeper/templates/statefulset.yaml b/bitnami/zookeeper/templates/statefulset.yaml index 072896104..3ed751ca2 100644 --- a/bitnami/zookeeper/templates/statefulset.yaml +++ b/bitnami/zookeeper/templates/statefulset.yaml @@ -91,9 +91,10 @@ spec: {{- $replicaCount := int .Values.replicaCount }} {{- $followerPort := int .Values.service.followerPort }} {{- $electionPort := int .Values.service.electionPort }} + {{- $releaseNamespace := .Release.Namespace }} {{- $zookeeperFullname := include "zookeeper.fullname" . }} {{- $zookeeperHeadlessServiceName := printf "%s-%s" $zookeeperFullname "headless" | trunc 24 }} - value: {{range $i, $e := until $replicaCount }}{{ $zookeeperFullname }}-{{ $e }}.{{ $zookeeperHeadlessServiceName }}.{{ .Release.Namespace }}.svc.cluster.local:{{ $followerPort }}:{{ $electionPort }} {{ end }} + value: {{range $i, $e := until $replicaCount }}{{ $zookeeperFullname }}-{{ $e }}.{{ $zookeeperHeadlessServiceName }}.{{ $releaseNamespace }}.svc.cluster.local:{{ $followerPort }}:{{ $electionPort }} {{ end }} {{- if .Values.auth.enabled }} - name: ZOO_ENABLE_AUTH value: "yes"