From 945d0828c70802a119348f606026284f766bc022 Mon Sep 17 00:00:00 2001 From: Tin Lam Date: Mon, 3 Aug 2020 11:14:57 -0500 Subject: [PATCH] fix(tls): mounts missing secret This patch set adds the missing secret mount for nova-service-cleaner. Change-Id: Ide9be4875c22bfd2a65a42ac8c0a6c6682f49f4d Signed-off-by: Tin Lam --- nova/templates/cron-job-cell-setup.yaml | 2 ++ nova/templates/cron-job-service-cleaner.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nova/templates/cron-job-cell-setup.yaml b/nova/templates/cron-job-cell-setup.yaml index 078c343398..18b661a72b 100644 --- a/nova/templates/cron-job-cell-setup.yaml +++ b/nova/templates/cron-job-cell-setup.yaml @@ -79,6 +79,7 @@ spec: mountPath: /etc/nova/policy.yaml subPath: policy.yaml readOnly: true +{{- dict "enabled" .Values.manifests.certificates "name" .Values.endpoints.oslo_db.auth.admin.secret.tls.internal "path" "/etc/mysql/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 16 }} volumes: - name: pod-tmp emptyDir: {} @@ -92,4 +93,5 @@ spec: configMap: name: nova-bin defaultMode: 0555 +{{- dict "enabled" .Values.manifests.certificates "name" .Values.endpoints.oslo_db.auth.admin.secret.tls.internal | include "helm-toolkit.snippets.tls_volume" | indent 12 }} {{- end }} diff --git a/nova/templates/cron-job-service-cleaner.yaml b/nova/templates/cron-job-service-cleaner.yaml index e186423547..bbe3fabd61 100644 --- a/nova/templates/cron-job-service-cleaner.yaml +++ b/nova/templates/cron-job-service-cleaner.yaml @@ -69,6 +69,7 @@ spec: readOnly: true - name: etcnova mountPath: /etc/nova +{{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.compute.osapi.internal | include "helm-toolkit.snippets.tls_volume_mount" | indent 16 }} volumes: - name: pod-tmp emptyDir: {} @@ -82,4 +83,5 @@ spec: configMap: name: nova-bin defaultMode: 0555 +{{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.compute.osapi.internal | include "helm-toolkit.snippets.tls_volume" | indent 12 }} {{- end }}