volume

package
v0.8.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 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 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 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