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:40 UTC

[incubator-heron] branch feature/helm-zk-fix created (now 79a0c84)

This is an automated email from the ASF dual-hosted git repository.

nicknezis pushed a change to branch feature/helm-zk-fix
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git.


      at 79a0c84  Adding missing environment variable

This branch includes the following new commits:

     new 79a0c84  Adding missing environment variable

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-heron] 01/01: Adding missing environment variable

Posted by ni...@apache.org.
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