From a0d6973e160268babe9affb55e055519ca80eb84 Mon Sep 17 00:00:00 2001 From: Nitin Goyal Date: Fri, 5 Jul 2024 13:41:51 +0530 Subject: [PATCH] annotate RBD storageclasses for reclaimspace Set reclaimspace schedule to weekly for all RBD storageclasses Signed-off-by: Nitin Goyal --- controllers/storagecluster/storageclasses.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/storagecluster/storageclasses.go b/controllers/storagecluster/storageclasses.go index 734c0d0102..4f5a98681c 100644 --- a/controllers/storagecluster/storageclasses.go +++ b/controllers/storagecluster/storageclasses.go @@ -287,6 +287,7 @@ func newCephBlockPoolStorageClassConfiguration(initData *ocsv1.StorageCluster) S Name: generateNameForCephBlockPoolSC(initData), Annotations: map[string]string{ "description": "Provides RWO Filesystem volumes, and RWO and RWX Block volumes", + "reclaimspace.csiaddons.openshift.io/schedule": "@weekly", }, }, Provisioner: rbdDriverName, @@ -342,6 +343,7 @@ func newNonResilientCephBlockPoolStorageClassConfiguration(initData *ocsv1.Stora Name: util.GenerateNameForNonResilientCephBlockPoolSC(initData), Annotations: map[string]string{ "description": "Ceph Non Resilient Pools : Provides RWO Filesystem volumes, and RWO and RWX Block volumes", + "reclaimspace.csiaddons.openshift.io/schedule": "@weekly", }, }, Provisioner: rbdDriverName,