Fix ci error caused by wrong block of if clause. (#208)
Co-authored-by: druidliu <druidliu@tencent.com>
This commit is contained in:
parent
40a4d50923
commit
1b3e875ba2
@ -188,27 +188,28 @@ spec:
|
|||||||
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.common.name }}"
|
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.common.name }}"
|
||||||
mountPath: /pulsar/data/bookkeeper
|
mountPath: /pulsar/data/bookkeeper
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- if .Values.bookkeeper.volumes.journal.useMultiVolumes }}
|
{{- if .Values.bookkeeper.volumes.journal.useMultiVolumes }}
|
||||||
{{- $fullname := include "pulsar.fullname" . -}}
|
{{- $fullname := include "pulsar.fullname" . -}}
|
||||||
{{- $bkComponent := .Values.bookkeeper.component -}}
|
{{- $bkComponent := .Values.bookkeeper.component -}}
|
||||||
{{ range .Values.bookkeeper.volumes.journal.multiVolumes }}
|
{{ range .Values.bookkeeper.volumes.journal.multiVolumes }}
|
||||||
- name: "{{ $fullname }}-{{ $bkComponent }}-{{ .name }}"
|
- name: "{{ $fullname }}-{{ $bkComponent }}-{{ .name }}"
|
||||||
mountPath: {{ .mountPath }}
|
mountPath: {{ .mountPath }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.journal.name }}"
|
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.journal.name }}"
|
||||||
mountPath: /pulsar/data/bookkeeper/journal
|
mountPath: /pulsar/data/bookkeeper/journal
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- if .Values.bookkeeper.volumes.ledgers.useMultiVolumes }}
|
{{- if .Values.bookkeeper.volumes.ledgers.useMultiVolumes }}
|
||||||
{{- $fullname := include "pulsar.fullname" . -}}
|
{{- $fullname := include "pulsar.fullname" . -}}
|
||||||
{{- $bkComponent := .Values.bookkeeper.component -}}
|
{{- $bkComponent := .Values.bookkeeper.component -}}
|
||||||
{{ range .Values.bookkeeper.volumes.ledgers.multiVolumes }}
|
{{ range .Values.bookkeeper.volumes.ledgers.multiVolumes }}
|
||||||
- name: "{{ $fullname }}-{{ $bkComponent }}-{{ .name }}"
|
- name: "{{ $fullname }}-{{ $bkComponent }}-{{ .name }}"
|
||||||
mountPath: {{ .mountPath }}
|
mountPath: {{ .mountPath }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.ledgers.name }}"
|
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}-{{ .Values.bookkeeper.volumes.ledgers.name }}"
|
||||||
mountPath: /pulsar/data/bookkeeper/ledgers
|
mountPath: /pulsar/data/bookkeeper/ledgers
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.bookkeeper.extraVolumeMounts }}
|
{{- if .Values.bookkeeper.extraVolumeMounts }}
|
||||||
{{ toYaml .Values.bookkeeper.extraVolumeMounts | indent 8 }}
|
{{ toYaml .Values.bookkeeper.extraVolumeMounts | indent 8 }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user