Skip to content

Commit

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

DFBUGS-1300: [release-4.18] external: fix sc name for rados namespace #2955
  • Loading branch information
openshift-merge-bot[bot] authored Jan 9, 2025
2 parents 52c12f0 + 07c988f commit 3b7a986
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions controllers/storagecluster/external_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ import (
)

const (
externalClusterDetailsSecret = "rook-ceph-external-cluster-details"
externalClusterDetailsKey = "external_cluster_details"
cephFsStorageClassName = "cephfs"
cephRbdStorageClassName = "ceph-rbd"
cephRbdRadosNamespaceStorageClassName = "ceph-rbd-rados-namespace"
cephRbdTopologyStorageClassName = "ceph-rbd-topology"
cephRgwStorageClassName = "ceph-rgw"
externalCephRgwEndpointKey = "endpoint"
cephRgwTLSSecretKey = "ceph-rgw-tls-cert"
externalClusterDetailsSecret = "rook-ceph-external-cluster-details"
externalClusterDetailsKey = "external_cluster_details"
cephFsStorageClassName = "cephfs"
cephRbdStorageClassName = "ceph-rbd"
cephRbdRadosNamespaceStorageClassNamePrefix = "ceph-rbd-rados-namespace"
cephRbdTopologyStorageClassName = "ceph-rbd-topology"
cephRgwStorageClassName = "ceph-rgw"
externalCephRgwEndpointKey = "endpoint"
cephRgwTLSSecretKey = "ceph-rgw-tls-cert"
)

const (
Expand Down Expand Up @@ -375,7 +375,7 @@ func (r *StorageClusterReconciler) createExternalStorageClusterResources(instanc
enableRookCSICephFS = true
} else if d.Name == cephRbdStorageClassName {
scc = newCephBlockPoolStorageClassConfiguration(instance)
} else if d.Name == cephRbdRadosNamespaceStorageClassName {
} else if strings.HasPrefix(d.Name, cephRbdRadosNamespaceStorageClassNamePrefix) { // ceph-rbd-rados-namespace-<radosNamespaceName>
scc = newCephBlockPoolStorageClassConfiguration(instance)
// update the storageclass name to rados storagesclass name
scc.storageClass.Name = fmt.Sprintf("%s-%s", instance.Name, d.Name)
Expand Down

0 comments on commit 3b7a986

Please sign in to comment.