volume

package
v0.8.0-alpha4 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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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