From 4ce74b70dcac34d8d9290853dce3109f56826a3f Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Thu, 18 Jun 2020 17:15:47 +0530 Subject: [PATCH] rook-ceph: Allow volume resizing This adds parameters to the storage class `rook-ceph-block` created by rook-ceph component. This will enable the PVs created by the storage class to be resized on the fly. Signed-off-by: Suraj Deshmukh --- pkg/components/rook-ceph/manifests.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/components/rook-ceph/manifests.go b/pkg/components/rook-ceph/manifests.go index 949b9d442..6009e3361 100644 --- a/pkg/components/rook-ceph/manifests.go +++ b/pkg/components/rook-ceph/manifests.go @@ -110,6 +110,7 @@ metadata: {{- if .StorageClass.Default }} storageclass.kubernetes.io/is-default-class: "true" {{- end }} +allowVolumeExpansion: true provisioner: {{ .Namespace }}.rbd.csi.ceph.com parameters: clusterID: {{ .Namespace }} @@ -127,6 +128,8 @@ parameters: csi.storage.k8s.io/provisioner-secret-namespace: {{ .Namespace }} csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node csi.storage.k8s.io/node-stage-secret-namespace: {{ .Namespace }} + csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/controller-expand-secret-namespace: {{ .Namespace }} # Specify the filesystem type of the volume. If not specified, csi-provisioner # will set default as 'ext4'.