Skip to content

Commit

Permalink
Merge pull request #2531 from parth-gr/remoe-pool
Browse files Browse the repository at this point in the history
rbd: update rbd sc for topology provisioning
  • Loading branch information
openshift-merge-bot[bot] authored Mar 27, 2024
2 parents 9d38bbf + 6c980c3 commit bbe9d9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/storagecluster/storageclasses.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (r *StorageClusterReconciler) createStorageClasses(sccs []StorageClassConfi
sc := scc.storageClass

switch {
case (strings.Contains(sc.Name, "-ceph-rbd") || strings.Contains(sc.Provisioner, rbdDriverName)) && !scc.isClusterExternal:
case (strings.Contains(sc.Name, "-ceph-rbd") || (strings.Contains(sc.Provisioner, rbdDriverName)) && !strings.Contains(sc.Name, "-ceph-non-resilient-rbd")) && !scc.isClusterExternal:
// wait for CephBlockPool to be ready
cephBlockPool := cephv1.CephBlockPool{}
key := types.NamespacedName{Name: sc.Parameters["pool"], Namespace: namespace}
Expand Down Expand Up @@ -351,7 +351,6 @@ func newNonResilientCephBlockPoolStorageClassConfiguration(initData *ocsv1.Stora
AllowVolumeExpansion: &allowVolumeExpansion,
Parameters: map[string]string{
"clusterID": initData.Namespace,
"pool": generateNameForCephBlockPool(initData),
"topologyConstrainedPools": getTopologyConstrainedPools(initData),
"imageFeatures": "layering,deep-flatten,exclusive-lock,object-map,fast-diff",
"csi.storage.k8s.io/fstype": "ext4",
Expand Down

0 comments on commit bbe9d9d

Please sign in to comment.