Documentation ¶
Index ¶
- func CleanupAll(t *testing.T, c operatorclient.ClientInterface, vc versioned.Interface)
- func CleanupAllCSVs(t *testing.T, c operatorclient.ClientInterface, vc versioned.Interface)
- func CleanupAllSubscriptions(t *testing.T, c operatorclient.ClientInterface, vc versioned.Interface)
- func CleanupAllTestNamespace(t *testing.T, c operatorclient.ClientInterface)
- func CleanupOperatorCSVs(t *testing.T, o *operator)
- func CleanupOperatorNamespace(t *testing.T, o *operator)
- func GetAllNamespace(c operatorclient.ClientInterface) (nsList []string, err error)
- func ListRHOperators(crc psVersioned.Interface) ([]pv1.PackageManifest, error)
- func ListRHOperatorsByInstallModes(crc psVersioned.Interface, installModes ...v1alpha1.InstallModeType) (packageList []string, err error)
- func ListRHOperatorsWithoutInstallModes(crc psVersioned.Interface, installModes ...v1alpha1.InstallModeType) (packageList []string, err error)
- func NewOperator(c operatorclient.ClientInterface, crc psVersioned.Interface, ...) (*operator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupAll ¶
func CleanupAll(t *testing.T, c operatorclient.ClientInterface, vc versioned.Interface)
CleanupAll deletes all test created CSVs, subscriptions, and namespaces.
func CleanupAllCSVs ¶
func CleanupAllCSVs(t *testing.T, c operatorclient.ClientInterface, vc versioned.Interface)
CleanupAllCSVs deletes All CSVs other than the packageServer.
func CleanupAllSubscriptions ¶
func CleanupAllSubscriptions(t *testing.T, c operatorclient.ClientInterface, vc versioned.Interface)
CleanupAllSubscriptions deletes all subscriptions from all namespaces.
func CleanupAllTestNamespace ¶
func CleanupAllTestNamespace(t *testing.T, c operatorclient.ClientInterface)
CleanupAllTestNamespace deletes all namespaces that are starting with "test-".
func CleanupOperatorCSVs ¶
CleanupOperatorCSVs deletes the CSVs of an operator in all targetNamespaces and fails if listing targetNamespaces fails.
func CleanupOperatorNamespace ¶
CleanupOperatorNamespace is a backup clean up function of an operator. If regular way of uninstalling an operator has failed, this strategy cleans up all Subscriptions and OperatorGroups within the namespace and then deletes the namespace itself.
func GetAllNamespace ¶
func GetAllNamespace(c operatorclient.ClientInterface) (nsList []string, err error)
GetAllNamespace gets all namespaces and return a list of names.
func ListRHOperators ¶
func ListRHOperators(crc psVersioned.Interface) ([]pv1.PackageManifest, error)
ListRHOperators lists the PackageManifest of all Red Hat Operators on the existing cluster.
func ListRHOperatorsByInstallModes ¶
func ListRHOperatorsByInstallModes(crc psVersioned.Interface, installModes ...v1alpha1.InstallModeType) ( packageList []string, err error)
ListRHOperatorsByInstallModes lists the names of all Red Hat Operators from Packagemanifests on the existing cluster that supports at least one of the support modes.
func ListRHOperatorsWithoutInstallModes ¶
func ListRHOperatorsWithoutInstallModes(crc psVersioned.Interface, installModes ...v1alpha1.InstallModeType) ( packageList []string, err error)
ListRHOperatorsWithoutInstallModes lists the names of all Red Hat Operators from Packagemanifests on the existing cluster that supports at least one of the support modes.
func NewOperator ¶
func NewOperator(c operatorclient.ClientInterface, crc psVersioned.Interface, vc versioned.Interface, operatorName string) (*operator, error)
NewOperator creates an operator struct based on operator name while fill in all default values based on packagemanifests. It returns error if package is not found on cluster or cluster is not connectable.
Types ¶
This section is empty.