driver

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VolumeSnapshotClassKind = "VolumeSnapshotClass"
	SnapshotAPIVersion      = "snapshot.storage.k8s.io/v1"
)
View Source
const (
	True = "true"
)

Variables

This section is empty.

Functions

func GetParameters

func GetParameters(volumeType string, fsType string, iops string, encrypted bool, secretName string, secretNamespace string) map[string]string

GetParameters returns the parameters specific for this driver

func IOPSPerGBForVolumeType

func IOPSPerGBForVolumeType(volumeType string) string

IOPSPerGBForVolumeType returns 25 for io1 volumeType Otherwise returns an empty string

func MinimumSizeForVolumeType

func MinimumSizeForVolumeType(volumeType string) string

MinimumSizeForVolumeType returns the minimum disk size for each volumeType

Types

type DynamicPVTestDriver

type DynamicPVTestDriver interface {
	// GetDynamicProvisionStorageClass returns a StorageClass dynamic provision Persistent Volume
	GetDynamicProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, volumeExpansion *bool, bindingMode *storagev1.VolumeBindingMode, allowedTopologyValues []string, namespace string) *storagev1.StorageClass

	// GetPassphraseSecret returns the secret
	GetPassphraseSecret(name string, passphrase string) *v1.Secret
}

DynamicPVTestDriver represents an interface for a CSI driver that supports DynamicPV

type PVTestDriver

func InitBsuCSIDriver added in v1.0.0

func InitBsuCSIDriver() PVTestDriver

InitBsuCSIDriver returns bsuCSIDriver that implements DynamicPVTestDriver interface

type PreProvisionedVolumeTestDriver

type PreProvisionedVolumeTestDriver interface {
	// GetPersistentVolume returns a PersistentVolume with pre-provisioned volumeHandle
	GetPersistentVolume(volumeID string, fsType string, size string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, namespace string) *v1.PersistentVolume
}

PreProvisionedVolumeTestDriver represents an interface for a CSI driver that supports pre-provisioned volume

type VolumeSnapshotTestDriver

type VolumeSnapshotTestDriver interface {
	GetVolumeSnapshotClass(namespace string) *volumesnapshotv1.VolumeSnapshotClass
}

Jump to

Keyboard shortcuts

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