blob: a3b00b20c21772adb686477f731d0752f26a7986 [file] [log] [blame] [edit]
{{- $root := . -}}
{{- range $objectstore := .Values.cephObjectStores -}}
---
apiVersion: ceph.rook.io/v1
kind: CephObjectStore
metadata:
name: {{ $objectstore.name }}
namespace: {{ $root.Release.Namespace }} # namespace:cluster
spec:
{{ toYaml $objectstore.spec | indent 2 }}
---
{{- if default false $objectstore.storageClass.enabled }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ $objectstore.storageClass.name }}
provisioner: {{ $root.Release.Namespace }}.ceph.rook.io/bucket
reclaimPolicy: {{ default "Delete" $objectstore.storageClass.reclaimPolicy }}
volumeBindingMode: {{ default "Immediate" $objectstore.storageClass.volumeBindingMode }}
parameters:
objectStoreName: {{ $objectstore.name }}
objectStoreNamespace: {{ $root.Release.Namespace }}
{{ with $objectstore.storageClass.parameters }}
{{ toYaml . | indent 2 }}
{{ end }}
{{ end }}
{{ end }}