Skip to content

Commit

Permalink
fix: volume mount
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
zzzhangqi committed Apr 9, 2024
1 parent 1260ad7 commit 88e0aa5
Showing 1 changed file with 22 additions and 88 deletions.
110 changes: 22 additions & 88 deletions templates/rbdcomponent_helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_gateway.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_gateway.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_gateway.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_gateway.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_gateway.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_gateway.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_gateway.image }}
image: {{ .Values.Component.rbd_gateway.image }}
Expand Down Expand Up @@ -158,17 +152,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_hub.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_hub.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_hub.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_hub.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_hub.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_hub.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_hub.image }}
image: {{ .Values.Component.rbd_hub.image }}
Expand Down Expand Up @@ -235,17 +223,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_mq.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_mq.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_mq.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_mq.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_mq.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_mq.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_mq.image }}
image: {{ .Values.Component.rbd_mq.image }}
Expand Down Expand Up @@ -286,17 +268,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_resource_proxy.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_resource_proxy.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_resource_proxy.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_resource_proxy.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_resource_proxy.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_resource_proxy.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_resource_proxy.image }}
image: {{ .Values.Component.rbd_resource_proxy.image }}
Expand Down Expand Up @@ -332,17 +308,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_webcli.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_webcli.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_webcli.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_webcli.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_webcli.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_webcli.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_webcli.image }}
image: {{ .Values.Component.rbd_webcli.image }}
Expand Down Expand Up @@ -431,17 +401,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_monitor.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_monitor.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_monitor.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_monitor.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_monitor.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_monitor.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_monitor.image }}
image: {{ .Values.Component.rbd_monitor.image }}
Expand Down Expand Up @@ -479,17 +443,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_db.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_db.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_db.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_db.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_db.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_db.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_db.image }}
image: {{ .Values.Component.rbd_db.image }}
Expand Down Expand Up @@ -581,17 +539,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_worker.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_worker.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_worker.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_worker.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_worker.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_worker.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_worker.image }}
image: {{ .Values.Component.rbd_worker.image }}
Expand Down Expand Up @@ -632,17 +584,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_eventlog.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_eventlog.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_eventlog.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_eventlog.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_eventlog.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_eventlog.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_eventlog.image }}
image: {{ .Values.Component.rbd_eventlog.image }}
Expand Down Expand Up @@ -678,17 +624,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_api.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_api.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_api.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_api.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_api.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_api.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_api.image }}
image: {{ .Values.Component.rbd_api.image }}
Expand Down Expand Up @@ -731,17 +671,11 @@ items:
{{- end }}
{{- if .Values.Component.rbd_app_ui.volumeMounts }}
volumeMounts:
{{- range $key,$value := .Values.Component.rbd_app_ui.volumeMounts }}
- name: {{ $key }}
mountPath: {{ $value }}
{{- end }}
{{ toYaml .Values.Component.rbd_app_ui.volumeMounts | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_app_ui.volumes }}
volumes:
{{- range $key,$value := .Values.Component.rbd_app_ui.volumes }}
- name: {{ $key }}
{{ $value | toYaml |indent 6}}
{{- end }}
{{ toYaml .Values.Component.rbd_app_ui.volumes | indent 4 }}
{{- end }}
{{- if .Values.Component.rbd_app_ui.image }}
image: {{ .Values.Component.rbd_app_ui.image }}
Expand Down

0 comments on commit 88e0aa5

Please sign in to comment.