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/07/28 00:55:22 UTC
[incubator-heron] 01/01: Reordering the init containers in the Helm
chart
This is an automated email from the ASF dual-hosted git repository.
nicknezis pushed a commit to branch nicknezis/init-container-fix
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit 2b516be7ce9f5f3127cc04fba57eb244653b5332
Author: Nicholas Nezis <ni...@gmail.com>
AuthorDate: Mon Jul 27 20:52:16 2020 -0400
Reordering the init containers in the Helm chart
---
deploy/kubernetes/helm/templates/bookie.yaml | 30 ++++++++++++++--------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/deploy/kubernetes/helm/templates/bookie.yaml b/deploy/kubernetes/helm/templates/bookie.yaml
index 09ceff2..238f60a 100644
--- a/deploy/kubernetes/helm/templates/bookie.yaml
+++ b/deploy/kubernetes/helm/templates/bookie.yaml
@@ -112,21 +112,6 @@ spec:
{{- end }}
terminationGracePeriodSeconds: 0
initContainers:
-{{- if eq .Values.platform "minikube" }}
- # The first time, initialize BK to wipe data for minikube
- - name: bookie-format
- image: {{ .Values.bookkeeper.image }}
- args: ["/opt/bookkeeper/bin/bookkeeper", "shell", "bookieformat", "-nonInteractive", "-force"]
- command: [ "/bin/bash", "/opt/bookkeeper/scripts/entrypoint.sh" ]
- envFrom:
- - configMapRef:
- name: {{ .Release.Name }}-bookie-config
- volumeMounts:
- - name: journal-disk
- mountPath: /bookkeeper/data/journal
- - name: ledgers-disk
- mountPath: /bookkeeper/data/ledgers
-{{- end }}
# Wait until the zookeeper pods are up and running
- name: bookie-init-container
image: {{ .Values.image }} # use heron image until bookkeeper has nc
@@ -143,6 +128,21 @@ spec:
echo 'Zookeeper {{ .Release.Name }}-zookeeper:{{ .Values.zookeeper.clientPort }} not ready';
sleep 4;
done
+{{- if eq .Values.platform "minikube" }}
+ # The first time, initialize BK to wipe data for minikube
+ - name: bookie-format
+ image: {{ .Values.bookkeeper.image }}
+ args: ["/opt/bookkeeper/bin/bookkeeper", "shell", "bookieformat", "-nonInteractive", "-force"]
+ command: [ "/bin/bash", "/opt/bookkeeper/scripts/entrypoint.sh" ]
+ envFrom:
+ - configMapRef:
+ name: {{ .Release.Name }}-bookie-config
+ volumeMounts:
+ - name: journal-disk
+ mountPath: /bookkeeper/data/journal
+ - name: ledgers-disk
+ mountPath: /bookkeeper/data/ledgers
+{{- end }}
containers:
- name: bookie
image: {{ .Values.bookkeeper.image }}