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
}
Click to show internal directories.
Click to hide internal directories.