You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by ni...@apache.org on 2020/09/04 19:59:41 UTC
[incubator-heron] 01/01: Adding missing environment variable
This is an automated email from the ASF dual-hosted git repository.
nicknezis pushed a commit to branch feature/helm-zk-fix
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit 79a0c8405ca4f44e7a2f74c15b65d8e26881bd57
Author: Nicholas Nezis <ni...@gmail.com>
AuthorDate: Fri Sep 4 19:59:19 2020 +0000
Adding missing environment variable
---
deploy/kubernetes/helm/templates/zookeeper.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/deploy/kubernetes/helm/templates/zookeeper.yaml b/deploy/kubernetes/helm/templates/zookeeper.yaml
index 725957f..4d2a9cf 100644
--- a/deploy/kubernetes/helm/templates/zookeeper.yaml
+++ b/deploy/kubernetes/helm/templates/zookeeper.yaml
@@ -118,6 +118,10 @@ spec:
value: "{{ .Values.zookeeper.serverPort }}"
- name: ZK_ELECTION_PORT
value: "{{ .Values.zookeeper.leaderElectionPort }}"
+ - name: ZOOKEEPER_SERVERS
+ {{- $replicaCount := int .Values.zkReplicas }}
+ {{- $fullName := printf "%s-%s" .Release.Name "zookeeper" }}
+ value: "{{ range $i, $e := until $replicaCount }}{{ fullName }}-{{ $e }},{{ end }}"
command:
- sh
- -c