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

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

commit f6e516caf4588e32d731f5f2189baad466c406e2
Author: Billy Romansky <[email protected]>
AuthorDate: Sat Mar 19 19:13:56 2022 -0400

        modified:   deploy/kubernetes/helm/templates/bookie.yaml
---
 deploy/kubernetes/helm/templates/bookie.yaml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/deploy/kubernetes/helm/templates/bookie.yaml 
b/deploy/kubernetes/helm/templates/bookie.yaml
index 4f01941..a64103c 100644
--- a/deploy/kubernetes/helm/templates/bookie.yaml
+++ b/deploy/kubernetes/helm/templates/bookie.yaml
@@ -19,6 +19,9 @@
 
 ## A reference of 
https://github.com/apache/incubator-pulsar/blob/master/kubernetes/google-container-engine/bookie.yaml
 
+
+{{- if or .Release.IsInstall .Values.initialize}}
+
 {{- $platform := .Values.platform }}
 {{- $bookieReplicas := .Values.bookieReplicas }}
 {{- $bookieCpuMin := .Values.bookieCpuMin }}
@@ -113,8 +116,7 @@ spec:
                         - {{ .Release.Name }}-bookkeeper
                 topologyKey: "kubernetes.io/hostname"
       terminationGracePeriodSeconds: 0
-
-{{- if or .Release.IsInstall .Values.initialize}}
+{{- end }}
       initContainers:
         # Wait until the zookeeper pods are up and running
         - name: bookie-init-container
@@ -132,7 +134,6 @@ spec:
                 echo 'Zookeeper {{ .Release.Name }}-zookeeper:{{ 
.Values.zookeeper.clientPort }} not ready';
                 sleep 4;
               done
-{{ end }}
 {{- if eq .Values.platform "minikube" }}
         # The first time, initialize BK to wipe data for minikube
         - name: bookie-format
@@ -148,7 +149,6 @@ spec:
             - name: ledgers-disk
               mountPath: /bookkeeper/data/ledgers
 {{- end }}
-{{- end }}
       containers:
         - name: bookie
           image: {{ .Values.bookkeeper.image }}
@@ -240,3 +240,4 @@ spec:
   selector:
     app: {{ .Release.Name }}-bookkeeper
     component: {{ .Release.Name }}-bookie
+{{- end }}

Reply via email to