storagecapabilities

package
v1.57.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ProvisionerNoobaa = "openshift-storage.noobaa.io/obc"

ProvisionerNoobaa is the provisioner string for the Noobaa object bucket provisioner which does not work with CDI

Variables

View Source
var CapabilitiesByProvisionerKey = map[string][]StorageCapabilities{

	"kubevirt.io.hostpath-provisioner": {{rwo, file}},
	"kubevirt.io/hostpath-provisioner": {{rwo, file}},

	"nfs.csi.k8s.io": {{rwx, file}},
	"k8s-sigs.io/nfs-subdir-external-provisioner": {{rwx, file}},

	"kubernetes.io/rbd":                  createRbdCapabilities(),
	"rbd.csi.ceph.com":                   createRbdCapabilities(),
	"rook-ceph.rbd.csi.ceph.com":         createRbdCapabilities(),
	"openshift-storage.rbd.csi.ceph.com": createRbdCapabilities(),

	"cephfs.csi.ceph.com":                   {{rwx, file}},
	"openshift-storage.cephfs.csi.ceph.com": {{rwx, file}},

	"linstor.csi.linbit.com": createLinstorCapabilities(),

	"csi-unity.dellemc.com": createDellUnityCapabilities(),

	"csi-vxflexos.dellemc.com": createDellPowerCapabilities(),

	"csi-isilon.dellemc.com": createDellPowerCapabilities(),

	"csi-powermax.dellemc.com": createDellPowerCapabilities(),

	"csi-powerstore.dellemc.com": createDellPowerCapabilities(),

	"kubernetes.io/storageos": {{rwo, file}},
	"storageos":               {{rwo, file}},

	"kubernetes.io/aws-ebs": {{rwo, block}},
	"ebs.csi.aws.com":       {{rwo, block}},

	"kubernetes.io/azure-disk": {{rwo, block}},
	"disk.csi.azure.com":       {{rwo, block}},

	"kubernetes.io/azure-file": {{rwx, file}},
	"file.csi.azure.com":       {{rwx, file}},

	"kubernetes.io/gce-pd":  {{rwo, block}},
	"pd.csi.storage.gke.io": {{rwo, block}},

	"hspc.csi.hitachi.com": {{rwx, block}, {rwo, block}, {rwo, file}},

	"csi.hpe.com": createRWOBlockAndFilesystemCapabilities(),

	"kubernetes.io/portworx-volume/shared": {{rwx, file}},
	"kubernetes.io/portworx-volume":        {{rwo, file}},

	"pxd.openstorage.org/shared": createOpenStorageSharedVolumeCapabilities(),
	"pxd.openstorage.org":        createRWOBlockAndFilesystemCapabilities(),
	"pxd.portworx.com/shared":    createOpenStorageSharedVolumeCapabilities(),
	"pxd.portworx.com":           createRWOBlockAndFilesystemCapabilities(),

	"csi.trident.netapp.io/ontap-nas": {{rwx, file}},
	"csi.trident.netapp.io/ontap-san": {{rwo, block}},

	"topolvm.cybozu.com": createTopoLVMCapabilities(),
	"topolvm.io":         createTopoLVMCapabilities(),

	"cinder.csi.openstack.org": createRWOBlockAndFilesystemCapabilities(),

	"manila.csi.openstack.org": {{rwx, file}},

	"csi.ovirt.org": createRWOBlockAndFilesystemCapabilities(),
}

CapabilitiesByProvisionerKey defines default capabilities for different storage classes

View Source
var UnsupportedProvisioners = map[string]struct{}{

	"openshift-storage.ceph.rook.io/bucket": {},
	ProvisionerNoobaa:                       {},
}

UnsupportedProvisioners is a hash of provisioners which are known not to work with CDI

Functions

This section is empty.

Types

type StorageCapabilities

type StorageCapabilities struct {
	AccessMode v1.PersistentVolumeAccessMode
	VolumeMode v1.PersistentVolumeMode
}

StorageCapabilities is a simple holder of storage capabilities (accessMode etc.)

func Get

Get finds and returns a predefined StorageCapabilities for a given StorageClass

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL