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 2022/03/19 23:24:41 UTC
[incubator-heron] 06/10: modified: deploy/kubernetes/helm/templates/bookie.yaml
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 8a3a7c7a094cf7e6eefaaa131acb71c25aa865d5
Author: Billy Romansky <wr...@protonmail.com>
AuthorDate: Sat Mar 19 19:13:56 2022 -0400
modified: deploy/kubernetes/helm/templates/bookie.yaml
---
deploy/kubernetes/helm/templates/bookie.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/deploy/kubernetes/helm/templates/bookie.yaml b/deploy/kubernetes/helm/templates/bookie.yaml
index a64103c..d953024 100644
--- a/deploy/kubernetes/helm/templates/bookie.yaml
+++ b/deploy/kubernetes/helm/templates/bookie.yaml
@@ -20,7 +20,6 @@
## 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 }}
@@ -117,6 +116,7 @@ spec:
topologyKey: "kubernetes.io/hostname"
terminationGracePeriodSeconds: 0
{{- end }}
+{{- if or .Release.IsInstall .Values.initialize}}
initContainers:
# Wait until the zookeeper pods are up and running
- name: bookie-init-container
@@ -134,6 +134,7 @@ 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
@@ -240,4 +241,3 @@ spec:
selector:
app: {{ .Release.Name }}-bookkeeper
component: {{ .Release.Name }}-bookie
-{{- end }}