volume

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyVolumeDefaults

func CopyVolumeDefaults(volumeRequest v1.VolumeRequest, volumeBinding v1.VolumeBinding, volumeDefaults v1.VolumeDefault) v1.VolumeRequest

func CreateEphemeralVolumeClass

func CreateEphemeralVolumeClass(req router.Request, resp router.Response) error

func FindDefaultStorageClass

func FindDefaultStorageClass(ctx context.Context, c client.Reader) (string, error)

func GetDefaultVolumeSize added in v0.10.0

func GetDefaultVolumeSize(ctx context.Context, c client.Client) (v1.Quantity, error)

func GetVolumeClassInstances

GetVolumeClassInstances returns an array of all project and cluster volume classes available in the namespace. If a project volume class is set to default, this ensures that no cluster volume classes are default to avoid conflicts. The class determined to be default, if it exists, is also returned.

func GetVolumeClassNames

func GetVolumeClassNames(ctx context.Context, c client.Client, namespace string, storageClassNames bool) ([]string, error)

func NormalizeMode

func NormalizeMode(mode string) string

func ResolveVolumeRequest added in v0.10.0

func ResolveVolumeRequest(ctx context.Context, c client.Client, volumeRequest v1.VolumeRequest,
	volumeBinding v1.VolumeBinding, volumeClasses map[string]adminv1.ProjectVolumeClassInstance,
	defaultVolumeClass *adminv1.ProjectVolumeClassInstance, existingResolvedVolume v1.VolumeResolvedOffering) (v1.VolumeRequest, error)

func SliceToMap

func SliceToMap[T any, K comparable](s []T, keyFunc func(obj T) K) map[K]T

func SyncVolumeClasses

func SyncVolumeClasses(req router.Request, resp router.Response) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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