Merge pull request #777 from bitnami/zookeeper_release_fix

Fix issue rendering zookeeper template
This commit is contained in:
Tomas Pizarro
2018-09-05 16:14:30 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -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:

View File

@@ -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"