helm: Add csi secret template to ceph-csi-rbd

Deploy csi secret when using the helm chart.

Signed-off-by: Yug <yuggupta27@gmail.com>
This commit is contained in:
Yug 2020-12-16 16:53:44 +05:30 committed by mergify[bot]
parent ecf768ec41
commit 230f0d3f22

View File

@ -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 -}}