Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add rook-ceph upstream provisioner string to unsupported providers #3174

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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