Documentation
¶
Index ¶
- Constants
- func FindDefaultStorageClass(oc *exutil.CLI) *storagev1.StorageClass
- func GetCSIStorageClassByProvisioner(ctx context.Context, oc *exutil.CLI, provisioner string) string
- func IsCSOHealthy(oc *exutil.CLI) (bool, error)
- func WaitForCSOHealthy(oc *exutil.CLI)
- type DisableStorageClassTest
- func (d *DisableStorageClassTest) GetAllowExpansion() bool
- func (d *DisableStorageClassTest) GetSCState() operatorv1.StorageClassStateName
- func (d *DisableStorageClassTest) SetAllowExpansion(allowExpansion bool)
- func (d *DisableStorageClassTest) SetSCState(scState operatorv1.StorageClassStateName)
- func (d *DisableStorageClassTest) VerifyAllowExpansion(expected bool, retry func())
- func (d *DisableStorageClassTest) VerifySCExists(expected bool)
- type ResourceType
- type SCPatch
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 ¶
IsCSOHealthy checks whether the Cluster Storage Operator is healthy
func WaitForCSOHealthy ¶
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 (d *DisableStorageClassTest) GetSCState() operatorv1.StorageClassStateName
func (*DisableStorageClassTest) SetAllowExpansion ¶
func (d *DisableStorageClassTest) SetAllowExpansion(allowExpansion bool)
func (*DisableStorageClassTest) SetSCState ¶
func (d *DisableStorageClassTest) SetSCState(scState operatorv1.StorageClassStateName)
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" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.