Skip to content

Commit

Permalink
rbd: fix storageclass check for topology sc
Browse files Browse the repository at this point in the history
currently the topology storageclass also checks for
the replicated cephblockpool which is not needed
so adding a check if it is topology sc then do not
check for replicated pool

Signed-off-by: parth-gr <[email protected]>
  • Loading branch information
parth-gr committed Mar 27, 2024
1 parent 7f019f2 commit ba3737b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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

0 comments on commit ba3737b

Please sign in to comment.