Don't mount pvc-ceph-client-key when not used
Closes-Bug: 1755975 Change-Id: I65a2e99cecce63bdae20f6e83cf62edf5327d7c6
This commit is contained in:
parent
784941ca73
commit
7295f308cc
@ -80,11 +80,13 @@ spec:
|
|||||||
mountPath: /tmp/ceph-admin-keyring.sh
|
mountPath: /tmp/ceph-admin-keyring.sh
|
||||||
subPath: ceph-admin-keyring.sh
|
subPath: ceph-admin-keyring.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
containers:
|
containers:
|
||||||
- name: cinder-backup-storage-init
|
- name: cinder-backup-storage-init
|
||||||
image: {{ .Values.images.tags.cinder_backup_storage_init }}
|
image: {{ .Values.images.tags.cinder_backup_storage_init }}
|
||||||
@ -125,11 +127,13 @@ spec:
|
|||||||
mountPath: /etc/ceph/ceph.conf
|
mountPath: /etc/ceph/ceph.conf
|
||||||
subPath: ceph.conf
|
subPath: ceph.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
configMap:
|
configMap:
|
||||||
@ -142,8 +146,10 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: ceph-etc
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: pvc-ceph-client-key
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -80,11 +80,13 @@ spec:
|
|||||||
mountPath: /tmp/ceph-admin-keyring.sh
|
mountPath: /tmp/ceph-admin-keyring.sh
|
||||||
subPath: ceph-admin-keyring.sh
|
subPath: ceph-admin-keyring.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
containers:
|
containers:
|
||||||
- name: cinder-storage-init
|
- name: cinder-storage-init
|
||||||
image: {{ .Values.images.tags.cinder_storage_init }}
|
image: {{ .Values.images.tags.cinder_storage_init }}
|
||||||
@ -125,11 +127,13 @@ spec:
|
|||||||
mountPath: /etc/ceph/ceph.conf
|
mountPath: /etc/ceph/ceph.conf
|
||||||
subPath: ceph.conf
|
subPath: ceph.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
configMap:
|
configMap:
|
||||||
@ -142,8 +146,10 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: ceph-etc
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: pvc-ceph-client-key
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -80,11 +80,13 @@ spec:
|
|||||||
mountPath: /tmp/ceph-admin-keyring.sh
|
mountPath: /tmp/ceph-admin-keyring.sh
|
||||||
subPath: ceph-admin-keyring.sh
|
subPath: ceph-admin-keyring.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
containers:
|
containers:
|
||||||
- name: glance-storage-init
|
- name: glance-storage-init
|
||||||
image: {{ .Values.images.tags.glance_storage_init }}
|
image: {{ .Values.images.tags.glance_storage_init }}
|
||||||
@ -129,11 +131,13 @@ spec:
|
|||||||
mountPath: /etc/ceph/ceph.conf
|
mountPath: /etc/ceph/ceph.conf
|
||||||
subPath: ceph.conf
|
subPath: ceph.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{- if eq .Values.storage "pvc" }}
|
{{- if eq .Values.storage "pvc" }}
|
||||||
- name: glance-images
|
- name: glance-images
|
||||||
mountPath: {{ .Values.conf.glance.glance_store.filesystem_store_datadir }}
|
mountPath: {{ .Values.conf.glance.glance_store.filesystem_store_datadir }}
|
||||||
@ -150,10 +154,12 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: ceph-etc
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: pvc-ceph-client-key
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{- if eq .Values.storage "pvc" }}
|
{{- if eq .Values.storage "pvc" }}
|
||||||
- name: glance-images
|
- name: glance-images
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@ -70,10 +70,12 @@ spec:
|
|||||||
mountPath: /tmp/ceph-keyring.sh
|
mountPath: /tmp/ceph-keyring.sh
|
||||||
subPath: ceph-keyring.sh
|
subPath: ceph-keyring.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.ceph.cinder_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: libvirt
|
- name: libvirt
|
||||||
@ -134,11 +136,13 @@ spec:
|
|||||||
mountPath: /etc/ceph/ceph.conf
|
mountPath: /etc/ceph/ceph.conf
|
||||||
subPath: ceph.conf
|
subPath: ceph.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.ceph.cinder_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{ if $mounts_libvirt.volumeMounts }}{{ toYaml $mounts_libvirt.volumeMounts | indent 12 }}{{ end }}
|
{{ if $mounts_libvirt.volumeMounts }}{{ toYaml $mounts_libvirt.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: libvirt-bin
|
- name: libvirt-bin
|
||||||
@ -156,10 +160,12 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: ceph-etc
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
|
{{- if empty .Values.ceph.cinder_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: pvc-ceph-client-key
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
- name: libmodules
|
- name: libmodules
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /lib/modules
|
path: /lib/modules
|
||||||
|
@ -87,11 +87,13 @@ spec:
|
|||||||
- name: nova-bin
|
- name: nova-bin
|
||||||
mountPath: /tmp/ceph-keyring.sh
|
mountPath: /tmp/ceph-keyring.sh
|
||||||
subPath: ceph-keyring.sh
|
subPath: ceph-keyring.sh
|
||||||
|
{{- if empty .Values.ceph.cinder_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{- if eq .Values.console.console_kind "novnc"}}
|
{{- if eq .Values.console.console_kind "novnc"}}
|
||||||
- name: nova-compute-vnc-init
|
- name: nova-compute-vnc-init
|
||||||
image: {{ .Values.images.tags.nova_compute }}
|
image: {{ .Values.images.tags.nova_compute }}
|
||||||
@ -198,11 +200,13 @@ spec:
|
|||||||
mountPath: /etc/ceph/ceph.conf
|
mountPath: /etc/ceph/ceph.conf
|
||||||
subPath: ceph.conf
|
subPath: ceph.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if empty .Values.ceph.cinder_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
subPath: key
|
subPath: key
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
- mountPath: /lib/modules
|
- mountPath: /lib/modules
|
||||||
name: libmodules
|
name: libmodules
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@ -269,10 +273,12 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: ceph-etc
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
|
{{- if empty .Values.ceph.cinder_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: pvc-ceph-client-key
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
- name: libmodules
|
- name: libmodules
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /lib/modules
|
path: /lib/modules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user