26 lines
1.1 KiB
YAML
26 lines
1.1 KiB
YAML
{{- if .Values.storageClass.create -}}
|
|
kind: StorageClass
|
|
apiVersion: storage.k8s.io/v1
|
|
metadata:
|
|
name: {{ .Values.storageClass.name }}
|
|
{{- if .Values.storageClass.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.storageClass.annotations | indent 4 }}
|
|
{{- end }}
|
|
provisioner: ru.yandex.s3.csi
|
|
parameters:
|
|
mounter: geesefs
|
|
options: "{{ .Values.storageClass.mountOptions }}"
|
|
{{- if .Values.storageClass.singleBucket }}
|
|
bucket: "{{ .Values.storageClass.singleBucket }}"
|
|
{{- end }}
|
|
csi.storage.k8s.io/provisioner-secret-name: {{ .Values.secret.name }}
|
|
csi.storage.k8s.io/provisioner-secret-namespace: {{ .Release.Namespace }}
|
|
csi.storage.k8s.io/controller-publish-secret-name: {{ .Values.secret.name }}
|
|
csi.storage.k8s.io/controller-publish-secret-namespace: {{ .Release.Namespace }}
|
|
csi.storage.k8s.io/node-stage-secret-name: {{ .Values.secret.name }}
|
|
csi.storage.k8s.io/node-stage-secret-namespace: {{ .Release.Namespace }}
|
|
csi.storage.k8s.io/node-publish-secret-name: {{ .Values.secret.name }}
|
|
csi.storage.k8s.io/node-publish-secret-namespace: {{ .Release.Namespace }}
|
|
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
|
|
{{- end -}}
|