Skip to content

Commit

Permalink
Merge pull request #2216 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2213-to-release-4.14

Bug 2244383: [release-4.14] Add default virtualization storage class annotation
  • Loading branch information
agarwal-mudit authored Oct 16, 2023
2 parents 41af2df + 2d559c8 commit f5b379c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/storagecluster/storageclasses.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,10 @@ func newCephBlockPoolStorageClassConfiguration(initData *ocsv1.StorageCluster) S
// newCephBlockPoolVirtualizationStorageClassConfiguration generates configuration options for a Ceph Block Pool StorageClass for virtualization environment.
func newCephBlockPoolVirtualizationStorageClassConfiguration(initData *ocsv1.StorageCluster) StorageClassConfiguration {
virtualizationStorageClassConfig := newCephBlockPoolStorageClassConfiguration(initData)
virtualizationStorageClassConfig.storageClass.ObjectMeta.Name = generateNameForCephBlockPoolVirtualizationSC(initData)
virtualizationStorageClassConfig.storageClass.ObjectMeta.Annotations["description"] = "Provides RWO and RWX Block volumes suitable for Virtual Machine disks"
meta := virtualizationStorageClassConfig.storageClass.ObjectMeta
meta.Name = generateNameForCephBlockPoolVirtualizationSC(initData)
meta.Annotations["description"] = "Provides RWO and RWX Block volumes suitable for Virtual Machine disks"
meta.Annotations["storageclass.kubevirt.io/is-default-virt-class"] = "true"
virtualizationStorageClassConfig.storageClass.Parameters["mounter"] = "rbd"
virtualizationStorageClassConfig.storageClass.Parameters["mapOptions"] = "krbd:rxbounce"
return virtualizationStorageClassConfig
Expand Down

0 comments on commit f5b379c

Please sign in to comment.