Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CapabilitiesByProvisionerKey = map[string][]StorageCapabilities{ "kubevirt.io.hostpath-provisioner": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeFilesystem}}, "kubevirt.io/hostpath-provisioner": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeFilesystem}}, "nfs.csi.k8s.io": {{AccessMode: v1.ReadWriteMany, VolumeMode: v1.PersistentVolumeFilesystem}}, "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": {{AccessMode: v1.ReadWriteMany, VolumeMode: v1.PersistentVolumeFilesystem}}, "openshift-storage.cephfs.csi.ceph.com": {{AccessMode: v1.ReadWriteMany, VolumeMode: v1.PersistentVolumeFilesystem}}, "csi-unity.dellemc.com": createDellUnityCapabilities(), "kubernetes.io/storageos": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeFilesystem}}, "storageos": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeFilesystem}}, "kubernetes.io/aws-ebs": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeBlock}}, "ebs.csi.aws.com": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeBlock}}, "kubernetes.io/azure-disk": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeBlock}}, "disk.csi.azure.com": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeBlock}}, "kubernetes.io/azure-file": {{AccessMode: v1.ReadWriteMany, VolumeMode: v1.PersistentVolumeFilesystem}}, "file.csi.azure.com": {{AccessMode: v1.ReadWriteMany, VolumeMode: v1.PersistentVolumeFilesystem}}, "kubernetes.io/gce-pd": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeBlock}}, "pd.csi.storage.gke.io": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeBlock}}, "kubernetes.io/portworx-volume/shared": {{AccessMode: v1.ReadWriteMany, VolumeMode: v1.PersistentVolumeFilesystem}}, "kubernetes.io/portworx-volume": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeFilesystem}}, "pxd.openstorage.org/shared": createOpenStorageSharedVolumeCapabilities(), "pxd.openstorage.org": createOpenStorageVolumeCapabilities(), "pxd.portworx.com/shared": createOpenStorageSharedVolumeCapabilities(), "pxd.portworx.com": createOpenStorageVolumeCapabilities(), "csi.trident.netapp.io/ontap-nas": {{AccessMode: v1.ReadWriteMany, VolumeMode: v1.PersistentVolumeFilesystem}}, "csi.trident.netapp.io/ontap-san": {{AccessMode: v1.ReadWriteOnce, VolumeMode: v1.PersistentVolumeBlock}}, "topolvm.cybozu.com": createTopoLVMCapabilities(), }
CapabilitiesByProvisionerKey defines default capabilities for different storage classes
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 ¶
func Get(cl client.Client, sc *storagev1.StorageClass) ([]StorageCapabilities, bool)
Get finds and returns a predefined StorageCapabilities for a given StorageClass
Click to show internal directories.
Click to hide internal directories.