Skip to content

Commit

Permalink
fix: add rook-ceph upstream provisioner string to map of unsupported
Browse files Browse the repository at this point in the history
provisioners

Signed-off-by: James Harmison <[email protected]>
  • Loading branch information
solacelost committed Apr 10, 2024
1 parent 9241633 commit 8d78861
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkg/storagecapabilities/storagecapabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,21 @@ var CloneStrategyByProvisionerKey = map[string]cdiv1.CDICloneStrategy{
"pxd.portworx.com": cdiv1.CloneStrategyCsiClone,
}

// ProvisionerNoobaa is the provisioner string for the Noobaa object bucket provisioner which does not work with CDI
const ProvisionerNoobaa = "openshift-storage.noobaa.io/obc"
const (
// ProvisionerNoobaa is the provisioner string for the Noobaa object bucket provisioner which does not work with CDI
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
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
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 8d78861

Please sign in to comment.