mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-25 07:40:19 +00:00
802f22f0ae
To use mutating webhook to modify secrets. For example banzaicloud vault webhook: https://bank-vaults.dev/docs/mutating-webhook/annotations/ Signed-off-by: Ruslan Khizhnyak <mustdiechik@gmail.com>
22 lines
664 B
YAML
22 lines
664 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-rbd.name" . }}
|
|
chart: {{ include "ceph-csi-rbd.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
|
|
stringData:
|
|
userID: {{ .Values.secret.userID }}
|
|
userKey: {{ .Values.secret.userKey }}
|
|
|
|
encryptionPassphrase: {{ .Values.secret.encryptionPassphrase }}
|
|
{{- end -}}
|