Skip to content

Commit

Permalink
fix: add rook-ceph upstream provisioner string to unsupported providers
Browse files Browse the repository at this point in the history
  • Loading branch information
solacelost committed Apr 10, 2024
1 parent 9241633 commit bf6820c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkg/storagecapabilities/storagecapabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,18 @@ var CloneStrategyByProvisionerKey = map[string]cdiv1.CDICloneStrategy{
// ProvisionerNoobaa is the provisioner string for the Noobaa object bucket provisioner which does not work with CDI
const ProvisionerNoobaa = "openshift-storage.noobaa.io/obc"

// ProvisionerOCSBucket is the provisioner string for the downstream ODF/OCS provisoner for buckets which does not work with CDI
const ProvisionerOCSBucket = "openshift-storage.ceph.rook.io/bucket"

// ProvisionerRookCephBucket is the provisioner string for the upstream Rook Ceph provisoner for buckets which does not work with CDI
const ProvisionerRookCephBucket = "rook-ceph.ceph.rook.io/bucket"

// UnsupportedProvisioners is a hash of provisioners which are known not to work with CDI
var UnsupportedProvisioners = map[string]struct{}{
// The following provisioners may be found in Rook/Ceph deployments and are related to object storage
"openshift-storage.ceph.rook.io/bucket": {},
ProvisionerNoobaa: {},
ProvisionerOCSBucket: {},
ProvisionerRookCephBucket: {},
ProvisionerNoobaa: {},
}

// GetCapabilities finds and returns a predefined StorageCapabilities for a given StorageClass
Expand Down

0 comments on commit bf6820c

Please sign in to comment.