Skip to content

Commit

Permalink
annotate RBD storageclasses for reclaimspace
Browse files Browse the repository at this point in the history
Set reclaimspace schedule to weekly for all RBD storageclasses

Signed-off-by: Nitin Goyal <[email protected]>
  • Loading branch information
iamniting committed Jul 11, 2024
1 parent 3f7d383 commit a0d6973
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/storagecluster/storageclasses.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a0d6973

Please sign in to comment.