@@ -112,21 +112,6 @@ spec:
112
112
{{- end }}
113
113
terminationGracePeriodSeconds : 0
114
114
initContainers :
115
- {{- if eq .Values.platform "minikube" }}
116
- # The first time, initialize BK to wipe data for minikube
117
- - name : bookie-format
118
- image : {{ .Values.bookkeeper.image }}
119
- args : ["/opt/bookkeeper/bin/bookkeeper", "shell", "bookieformat", "-nonInteractive", "-force"]
120
- command : [ "/bin/bash", "/opt/bookkeeper/scripts/entrypoint.sh" ]
121
- envFrom :
122
- - configMapRef :
123
- name : {{ .Release.Name }}-bookie-config
124
- volumeMounts :
125
- - name : journal-disk
126
- mountPath : /bookkeeper/data/journal
127
- - name : ledgers-disk
128
- mountPath : /bookkeeper/data/ledgers
129
- {{- end }}
130
115
# Wait until the zookeeper pods are up and running
131
116
- name : bookie-init-container
132
117
image : {{ .Values.image }} # use heron image until bookkeeper has nc
@@ -143,6 +128,21 @@ spec:
143
128
echo 'Zookeeper {{ .Release.Name }}-zookeeper:{{ .Values.zookeeper.clientPort }} not ready';
144
129
sleep 4;
145
130
done
131
+ {{- if eq .Values.platform "minikube" }}
132
+ # The first time, initialize BK to wipe data for minikube
133
+ - name : bookie-format
134
+ image : {{ .Values.bookkeeper.image }}
135
+ args : ["/opt/bookkeeper/bin/bookkeeper", "shell", "bookieformat", "-nonInteractive", "-force"]
136
+ command : [ "/bin/bash", "/opt/bookkeeper/scripts/entrypoint.sh" ]
137
+ envFrom :
138
+ - configMapRef :
139
+ name : {{ .Release.Name }}-bookie-config
140
+ volumeMounts :
141
+ - name : journal-disk
142
+ mountPath : /bookkeeper/data/journal
143
+ - name : ledgers-disk
144
+ mountPath : /bookkeeper/data/ledgers
145
+ {{- end }}
146
146
containers :
147
147
- name : bookie
148
148
image : {{ .Values.bookkeeper.image }}
0 commit comments