k8sstorage

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataImportCronSourceFormatForStorageClass

func GetDataImportCronSourceFormatForStorageClass(k8sConnector k8sconnector.K8SConnector, storageClassName string) (cdiv1beta1.DataImportCronSourceFormat, error)

func GetDefaultStorageClassName

func GetDefaultStorageClassName(k8sConnector k8sconnector.K8SConnector, preferVirt bool) (string, error)

GetDefaultStorageClassName returns the name of the default storage class If preferVirt is false look for the storageclass.kubernetes.io/is-default-class annotation If preferVirt is true look for the storageclass.kubevirt.io/is-default-virt-class annotation

func GetStorageClassName

func GetStorageClassName(k8sConnector k8sconnector.K8SConnector, storageClassName string, preferVirt bool) (string, error)

If storageClassName was provided, verify that it exists. Otherwise, get the default

func GetStorageProfileForStorageClass

func GetStorageProfileForStorageClass(k8sConnector k8sconnector.K8SConnector, storageClassName string) (*unstructured.Unstructured, error)

func GetVolumeSnapshotClassNameForStorageClass

func GetVolumeSnapshotClassNameForStorageClass(k8sConnector k8sconnector.K8SConnector, storageClassName string) (string, error)

GetVolumeSnapshotClassNameForStorageClass returns the name VolumeSnapshotClass with the same provisioner as that of the storageClass

func StorageClassExists

func StorageClassExists(k8sConnector k8sconnector.K8SConnector, storageClassName string) (bool, error)

StorageClassExists Check if a storageClass with this name exists.

func StorageClassSupportsVolumeExpansion

func StorageClassSupportsVolumeExpansion(k8sConnector k8sconnector.K8SConnector, storageClassName string) (bool, error)

StorageClassSupportsVolumeExpansion returns true if the storageClass allows Volume Expansion

Types

This section is empty.

Jump to

Keyboard shortcuts

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