Allow bk cluster init to restart on failure (#303)

### Motivation

This is essentially the same as https://github.com/apache/pulsar-helm-chart/pull/176. Without this change, an init pod can fail and be in `Error` state even though the second pod succeeded. This will prevent misleading errors.

### Modifications

* Replace `Never` with `OnFailure`

### Verifying this change

This is a trivial change.
This commit is contained in:
Michael Marshall 2022-10-17 15:59:05 -07:00 committed by GitHub
parent 25f355e6e2
commit 48501ebe84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,6 @@ spec:
{{- include "pulsar.toolset.certs.volumeMounts" . | nindent 8 }}
volumes:
{{- include "pulsar.toolset.certs.volumes" . | nindent 6 }}
restartPolicy: Never
restartPolicy: OnFailure
{{- end }}
{{- end }}