volume_resize

package
v0.0.0-...-9913de7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefTimeoutSecs            = 120 // in seconds
	DefSleepTime              = 30  // in seconds
	DefFioCompletionTime      = 420 // in seconds
	InsufficientStorageError  = "507 Insufficient Storage"
	PvcShrinkErrorSubString   = " Forbidden: field can not be less than previous value"
	SnapshotVolumeResizeError = "Volume can't be resized while it has snapshots, or it's a snapshot restore"
)

Functions

func ByteSizeString

func ByteSizeString(bytesize uint64) string

func VerifyVolumeResize

func VerifyVolumeResize(pvcName string, volumeName string, namespace string, volSizeMb int) (bool, error)

VerifyVolumeResize verify: 1. pvc resize 2. pv resize 3. mayastor volume replicas resize 4. mayastor volume resize 5. verify volume state

func WaitForPvResize

func WaitForPvResize(pvName string, volSizeMb int) (bool, error)

func WaitForPvcResize

func WaitForPvcResize(pvcName string, namespace string, volSizeMb int) (bool, error)

func WaitForReplicaResize

func WaitForReplicaResize(volName string, volSizeMb int) (bool, error)

func WaitForVolumeResize

func WaitForVolumeResize(volName string, volSizeMb int) (bool, error)

func WaitForVolumeUnPublish

func WaitForVolumeUnPublish(volName string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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