mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-15 10:50:18 +00:00
3fbe7a8c77
According to https://github.com/ceph/ceph-csi/issues/4467 the cephfs static provisioner expect userID and userKey in the credential secret. Add these values to the helm chart so that they are only included in the templated yaml if the values are non-empty. Signed-off-by: james-choncholas <jim@choncholas.com>
26 lines
780 B
YAML
26 lines
780 B
YAML
{{- if .Values.secret.create -}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ .Values.secret.name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- with .Values.secret.annotations }}
|
|
annotations: {{- . | toYaml | nindent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
app: {{ include "ceph-csi-cephfs.name" . }}
|
|
chart: {{ include "ceph-csi-cephfs.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
|
|
stringData:
|
|
{{- if .Values.secret.userID }}
|
|
userID: {{ .Values.secret.userID }}
|
|
{{- end }}
|
|
{{- if .Values.secret.userKey }}
|
|
userKey: {{ .Values.secret.userKey }}
|
|
{{- end }}
|
|
adminID: {{ .Values.secret.adminID }}
|
|
adminKey: {{ .Values.secret.adminKey }}
|
|
{{- end -}}
|