Allow initialization to be set (#53)
Fixes #47 ### Motivation Only create the initialize job on install. ### Modifications - Added an initialize value that can be set to true on install, matching the documentation in the README.md
This commit is contained in:
parent
207d697bed
commit
b44b523c8a
@ -81,9 +81,9 @@ function ci::install_pulsar_chart() {
|
|||||||
${CHARTS_HOME}/scripts/pulsar/upload_tls.sh -k ${CLUSTER} -d ${PULSAR_HOME}/.ci/tls
|
${CHARTS_HOME}/scripts/pulsar/upload_tls.sh -k ${CLUSTER} -d ${PULSAR_HOME}/.ci/tls
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
echo ${HELM} install --values ${value_file} ${CLUSTER} ${CHARTS_HOME}/charts/pulsar
|
echo ${HELM} install --set initialize=true --values ${value_file} ${CLUSTER} ${CHARTS_HOME}/charts/pulsar
|
||||||
${HELM} template --values ${value_file} ${CLUSTER} ${CHARTS_HOME}/charts/pulsar
|
${HELM} template --values ${value_file} ${CLUSTER} ${CHARTS_HOME}/charts/pulsar
|
||||||
${HELM} install --values ${value_file} ${CLUSTER} ${CHARTS_HOME}/charts/pulsar
|
${HELM} install --set initialize=true --values ${value_file} ${CLUSTER} ${CHARTS_HOME}/charts/pulsar
|
||||||
|
|
||||||
echo "wait until broker is alive"
|
echo "wait until broker is alive"
|
||||||
WC=$(${KUBECTL} get pods -n ${NAMESPACE} --field-selector=status.phase=Running | grep ${CLUSTER}-broker | wc -l)
|
WC=$(${KUBECTL} get pods -n ${NAMESPACE} --field-selector=status.phase=Running | grep ${CLUSTER}-broker | wc -l)
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
{{- if .Values.initialize }}
|
||||||
{{- if .Values.components.bookkeeper }}
|
{{- if .Values.components.bookkeeper }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
@ -75,3 +75,4 @@ spec:
|
|||||||
{{- include "pulsar.toolset.certs.volumes" . | nindent 6 }}
|
{{- include "pulsar.toolset.certs.volumes" . | nindent 6 }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@ -17,6 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
{{- if .Values.initialize }}
|
||||||
{{- if .Values.components.broker }}
|
{{- if .Values.components.broker }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
@ -106,3 +107,4 @@ spec:
|
|||||||
{{- include "pulsar.toolset.certs.volumes" . | nindent 6 }}
|
{{- include "pulsar.toolset.certs.volumes" . | nindent 6 }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@ -30,6 +30,9 @@ namespaceCreate: false
|
|||||||
### Global Settings
|
### Global Settings
|
||||||
###
|
###
|
||||||
|
|
||||||
|
## Set to true on install
|
||||||
|
initialize: false
|
||||||
|
|
||||||
## Pulsar Metadata Prefix
|
## Pulsar Metadata Prefix
|
||||||
##
|
##
|
||||||
## By default, pulsar stores all the metadata at root path.
|
## By default, pulsar stores all the metadata at root path.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user