2020-12-16 11:23:44 +00:00
|
|
|
{{- if .Values.secret.create -}}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: {{ .Values.secret.name }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
2023-11-08 09:47:42 +00:00
|
|
|
{{- with .Values.secret.annotations }}
|
|
|
|
annotations: {{- . | toYaml | nindent 4 }}
|
|
|
|
{{- end }}
|
2020-12-16 11:23:44 +00:00
|
|
|
labels:
|
|
|
|
app: {{ include "ceph-csi-rbd.name" . }}
|
|
|
|
chart: {{ include "ceph-csi-rbd.chart" . }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
heritage: {{ .Release.Service }}
|
2022-10-14 14:59:09 +00:00
|
|
|
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
|
2020-12-16 11:23:44 +00:00
|
|
|
stringData:
|
|
|
|
userID: {{ .Values.secret.userID }}
|
|
|
|
userKey: {{ .Values.secret.userKey }}
|
|
|
|
|
|
|
|
encryptionPassphrase: {{ .Values.secret.encryptionPassphrase }}
|
|
|
|
{{- end -}}
|