diff --git a/nova/templates/daemonset-compute.yaml b/nova/templates/daemonset-compute.yaml index 35236bdadc..64f0a6767c 100644 --- a/nova/templates/daemonset-compute.yaml +++ b/nova/templates/daemonset-compute.yaml @@ -263,7 +263,7 @@ spec: {{- if or ( gt .Capabilities.KubeVersion.Major "1" ) ( ge .Capabilities.KubeVersion.Minor "10" ) }} mountPropagation: Bidirectional {{- end }} - {{- if empty .Values.conf.ceph.cinder.keyring }} + {{- if and ( empty .Values.conf.ceph.cinder.keyring ) ( empty .Values.conf.ceph.admin_keyring )}} - name: ceph-keyring mountPath: /tmp/client-keyring subPath: key @@ -343,7 +343,7 @@ spec: configMap: name: {{ .Values.ceph_client.configmap }} defaultMode: 0444 - {{- if empty .Values.conf.ceph.cinder.keyring }} + {{- if and ( empty .Values.conf.ceph.cinder.keyring ) ( empty .Values.conf.ceph.admin_keyring ) }} - name: ceph-keyring secret: secretName: {{ .Values.ceph_client.user_secret_name }}