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:
|
|
|
|
adminID: {{ .Values.secret.adminID }}
|
|
|
|
adminKey: {{ .Values.secret.adminKey }}
|
|
|
|
{{- end -}}
|