Automate initialize (#138)

- no need to do "--set initialize=true" anymore
This commit is contained in:
Valeriano Manassero 2022-01-05 15:08:11 +01:00 committed by GitHub
parent 706c8c292b
commit 25e997a425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View File

@ -94,11 +94,8 @@ helm repo add apache https://pulsar.apache.org/charts
To use the helm chart: To use the helm chart:
> NOTE: Please specify `--set initialize=true` when installing a release at the first time. `initialize=true` will start initialize jobs
> to initialize the cluster metadata for both bookkeeper and pulsar clusters.
```bash ```bash
helm install --set initialize=true <release-name> apache/pulsar helm install <release-name> apache/pulsar
``` ```
## Kubernetes cluster preparation ## Kubernetes cluster preparation
@ -133,13 +130,10 @@ We provide some instructions to guide you through the preparation: http://pulsar
3. Use the Pulsar Helm charts to install Apache Pulsar. 3. Use the Pulsar Helm charts to install Apache Pulsar.
> NOTE: Please specify `--set initialize=true` when installing a release at the first time. `initialize=true` will start initialize jobs
> to initialize the cluster metadata for both bookkeeper and pulsar clusters.
This command installs and starts Apache Pulsar. This command installs and starts Apache Pulsar.
```bash ```bash
$ helm install --set initialize=true <pulsar-release-name> apache/pulsar $ helm install <pulsar-release-name> apache/pulsar
``` ```
5. Access the Pulsar cluster 5. Access the Pulsar cluster

View File

@ -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 or .Release.IsInstall .Values.initialize }}
{{- if .Values.components.bookkeeper }} {{- if .Values.components.bookkeeper }}
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job

View File

@ -17,7 +17,7 @@
# under the License. # under the License.
# #
{{- if .Values.initialize }} {{- if or .Release.IsInstall .Values.initialize }}
{{- if .Values.components.broker }} {{- if .Values.components.broker }}
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job