block

package
v0.4.47 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockMountChecker

type BlockMountChecker interface {
	Mount(ctx context.Context) (*BlockMountCheckerResult, error)
	Cleanup()
}

BlockMountChecker tests if a storage class can provision volumes for block mounts.

func NewBlockMountChecker

func NewBlockMountChecker(args BlockMountCheckerArgs) (BlockMountChecker, error)

type BlockMountCheckerArgs

type BlockMountCheckerArgs struct {
	KubeCli kubernetes.Interface
	DynCli  dynamic.Interface

	StorageClass          string
	Namespace             string
	Cleanup               bool
	RunAsUser             int64
	ContainerImage        string
	K8sObjectReadyTimeout time.Duration
	PVCSize               string
}

func (*BlockMountCheckerArgs) Validate

func (a *BlockMountCheckerArgs) Validate() error

type BlockMountCheckerResult

type BlockMountCheckerResult struct {
	StorageClass *sv1.StorageClass
}

Jump to

Keyboard shortcuts

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