rh_operators

package
v0.0.0-...-d489491 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupAll

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

func CleanupOperatorCSVs(t *testing.T, o *operator)

CleanupOperatorCSVs deletes the CSVs of an operator in all targetNamespaces and fails if listing targetNamespaces fails.

func CleanupOperatorNamespace

func CleanupOperatorNamespace(t *testing.T, o *operator)

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.

Jump to

Keyboard shortcuts

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