From 230f0d3f229305fcba5701f765bde2598315aa5c Mon Sep 17 00:00:00 2001 From: Yug Date: Wed, 16 Dec 2020 16:53:44 +0530 Subject: [PATCH] helm: Add csi secret template to ceph-csi-rbd Deploy csi secret when using the helm chart. Signed-off-by: Yug --- charts/ceph-csi-rbd/templates/secret.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 charts/ceph-csi-rbd/templates/secret.yaml diff --git a/charts/ceph-csi-rbd/templates/secret.yaml b/charts/ceph-csi-rbd/templates/secret.yaml new file mode 100644 index 000000000..1553ceec7 --- /dev/null +++ b/charts/ceph-csi-rbd/templates/secret.yaml @@ -0,0 +1,17 @@ +{{- if .Values.secret.create -}} +apiVersion: v1 +kind: Secret +metadata: + name: {{ .Values.secret.name }} + namespace: {{ .Release.Namespace }} + labels: + app: {{ include "ceph-csi-rbd.name" . }} + chart: {{ include "ceph-csi-rbd.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +stringData: + userID: {{ .Values.secret.userID }} + userKey: {{ .Values.secret.userKey }} + + encryptionPassphrase: {{ .Values.secret.encryptionPassphrase }} +{{- end -}}