Files
ceph-csi/charts/ceph-csi-cephfs/templates/secret.yaml
Niraj Yadav 20b9ecc15c helm: mark userID and userKey required in secret
This patch marks `userID` and `userKey` required in
helm values.

A release note has been added for the same as well.

Signed-off-by: Niraj Yadav <niryadav@redhat.com>
2025-04-23 09:05:53 +00:00

20 lines
712 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:
userID: {{ required "A valid userID must be specified in secret" .Values.secret.userID }}
userKey: {{ required "A valid userKey must be specified in secret" .Values.secret.userKey }}
{{- end -}}