This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new 1b3e875 Fix ci error caused by wrong block of if clause. (#208)
1b3e875 is described below
commit 1b3e875ba2dbc2dbb44ba6d34ae7579fe03c349f
Author: Shen Liu <[email protected]>
AuthorDate: Tue Jan 25 13:44:08 2022 +0800
Fix ci error caused by wrong block of if clause. (#208)
Co-authored-by: druidliu <[email protected]>
---
.../pulsar/templates/bookkeeper-statefulset.yaml | 27 +++++++++++-----------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/charts/pulsar/templates/bookkeeper-statefulset.yaml
b/charts/pulsar/templates/bookkeeper-statefulset.yaml
index 80473f9..db63c82 100644
--- a/charts/pulsar/templates/bookkeeper-statefulset.yaml
+++ b/charts/pulsar/templates/bookkeeper-statefulset.yaml
@@ -188,27 +188,28 @@ spec:
- name: "{{ template "pulsar.fullname" . }}-{{
.Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.common.name }}"
mountPath: /pulsar/data/bookkeeper
{{- else }}
- {{- if .Values.bookkeeper.volumes.journal.useMultiVolumes }}
- {{- $fullname := include "pulsar.fullname" . -}}
- {{- $bkComponent := .Values.bookkeeper.component -}}
- {{ range .Values.bookkeeper.volumes.journal.multiVolumes }}
+ {{- if .Values.bookkeeper.volumes.journal.useMultiVolumes }}
+ {{- $fullname := include "pulsar.fullname" . -}}
+ {{- $bkComponent := .Values.bookkeeper.component -}}
+ {{ range .Values.bookkeeper.volumes.journal.multiVolumes }}
- name: "{{ $fullname }}-{{ $bkComponent }}-{{ .name }}"
mountPath: {{ .mountPath }}
- {{- end }}
- {{- else }}
+ {{- end }}
+ {{- else }}
- name: "{{ template "pulsar.fullname" . }}-{{
.Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.journal.name }}"
mountPath: /pulsar/data/bookkeeper/journal
- {{- end}}
- {{- if .Values.bookkeeper.volumes.ledgers.useMultiVolumes }}
- {{- $fullname := include "pulsar.fullname" . -}}
- {{- $bkComponent := .Values.bookkeeper.component -}}
- {{ range .Values.bookkeeper.volumes.ledgers.multiVolumes }}
+ {{- end}}
+ {{- if .Values.bookkeeper.volumes.ledgers.useMultiVolumes }}
+ {{- $fullname := include "pulsar.fullname" . -}}
+ {{- $bkComponent := .Values.bookkeeper.component -}}
+ {{ range .Values.bookkeeper.volumes.ledgers.multiVolumes }}
- name: "{{ $fullname }}-{{ $bkComponent }}-{{ .name }}"
mountPath: {{ .mountPath }}
- {{- end }}
- {{- else }}
+ {{- end }}
+ {{- else }}
- name: "{{ template "pulsar.fullname" . }}-{{
.Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.ledgers.name }}"
mountPath: /pulsar/data/bookkeeper/ledgers
+ {{- end }}
{{- end }}
{{- if .Values.bookkeeper.extraVolumeMounts }}
{{ toYaml .Values.bookkeeper.extraVolumeMounts | indent 8 }}