2021-12-08 18:17:39 +00:00
|
|
|
{{- 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 }}"
|
2022-02-10 14:21:30 +00:00
|
|
|
{{- if .Values.storageClass.singleBucket }}
|
2021-12-08 18:17:39 +00:00
|
|
|
bucket: "{{ .Values.storageClass.singleBucket }}"
|
2022-02-10 14:21:30 +00:00
|
|
|
{{- end }}
|
2021-12-08 18:17:39 +00:00
|
|
|
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 -}}
|