2020-12-16 11:26:20 +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:26:20 +00:00
|
|
|
labels:
|
|
|
|
app: {{ include "ceph-csi-cephfs.name" . }}
|
|
|
|
chart: {{ include "ceph-csi-cephfs.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:26:20 +00:00
|
|
|
stringData:
|
2024-08-25 22:17:45 +00:00
|
|
|
{{- if .Values.secret.userID }}
|
|
|
|
userID: {{ .Values.secret.userID }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.secret.userKey }}
|
|
|
|
userKey: {{ .Values.secret.userKey }}
|
|
|
|
{{- end }}
|
2020-12-16 11:26:20 +00:00
|
|
|
adminID: {{ .Values.secret.adminID }}
|
|
|
|
adminKey: {{ .Values.secret.adminKey }}
|
|
|
|
{{- end -}}
|