storage

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSONamespace       = "openshift-cluster-storage-operator" // Cluster Storage Operator namespace
	CSINamespace       = "openshift-cluster-csi-drivers"      // Default CSI driver operators namespace
	ManilaCSINamespace = "openshift-manila-csi-driver"        // Manila CSI driver namespace (OpenStack only)
)

Storage operator and CSI driver namespace constants

Variables

This section is empty.

Functions

func FindDefaultStorageClass

func FindDefaultStorageClass(oc *exutil.CLI) *storagev1.StorageClass

func GetCSIStorageClassByProvisioner

func GetCSIStorageClassByProvisioner(ctx context.Context, oc *exutil.CLI, provisioner string) string

GetCSIStorageClassByProvisioner finds a StorageClass that uses the given CSI driver provisioner. It is intended for use only in [Serial] jobs, since CSI tests typically create short-lived StorageClasses that may be deleted. The function returns the name of the first matching StorageClass, or fails the test if none is found.

func IsCSOHealthy

func IsCSOHealthy(oc *exutil.CLI) (bool, error)

IsCSOHealthy checks whether the Cluster Storage Operator is healthy

func WaitForCSOHealthy

func WaitForCSOHealthy(oc *exutil.CLI)

WaitForCSOHealthy waits for Cluster Storage Operator become healthy

Types

type DisableStorageClassTest

type DisableStorageClassTest struct {
	// contains filtered or unexported fields
}

func NewDisableStorageClassTest

func NewDisableStorageClassTest(oc *exutil.CLI, scName string, provisionerName string) *DisableStorageClassTest

func (*DisableStorageClassTest) GetAllowExpansion

func (d *DisableStorageClassTest) GetAllowExpansion() bool

func (*DisableStorageClassTest) GetSCState

func (*DisableStorageClassTest) SetAllowExpansion

func (d *DisableStorageClassTest) SetAllowExpansion(allowExpansion bool)

func (*DisableStorageClassTest) SetSCState

func (*DisableStorageClassTest) VerifyAllowExpansion

func (d *DisableStorageClassTest) VerifyAllowExpansion(expected bool, retry func())

func (*DisableStorageClassTest) VerifySCExists

func (d *DisableStorageClassTest) VerifySCExists(expected bool)

type ResourceType

type ResourceType string

ResourceType defines the type of Openshift workload resource

const (
	ResourceTypeDeployment ResourceType = "Deployment"
	ResourceTypeDaemonSet  ResourceType = "DaemonSet"
)

type SCPatch

type SCPatch struct {
	AllowVolumeExpansion *bool `json:"allowVolumeExpansion,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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