Documentation ¶
Index ¶
- Constants
- func Apply(obj controllerclient.Object, changeFunc interface{}) func() error
- func CSVHasPhase(goal operatorsv1alpha1.ClusterServiceVersionPhase) gtypes.GomegaMatcher
- func HaveMessage(goal string) gtypes.GomegaMatcher
- func HavePhase(goal operatorsv1alpha1.InstallPlanPhase) gtypes.GomegaMatcher
- func K8sSafeCurrentTestDescription() string
- func Local(client operatorclient.ClientInterface) (bool, error)
- func MaskNotFound(err error) error
- func SetupGeneratedTestNamespace(name string, targetNamespaces ...string) corev1.Namespace
- func SetupGeneratedTestNamespaceWithOperatorGroup(name string, og operatorsv1.OperatorGroup) corev1.Namespace
- func TearDown(namespace string)
- func TeardownNamespace(ns string)
- type FileBasedCatalogProvider
- type MagicCatalog
- func (c *MagicCatalog) DeployCatalog(ctx context.Context) error
- func (c *MagicCatalog) GetName() string
- func (c *MagicCatalog) GetNamespace() string
- func (c *MagicCatalog) UndeployCatalog(ctx context.Context) []error
- func (c *MagicCatalog) UpdateCatalog(ctx context.Context, provider FileBasedCatalogProvider) error
Constants ¶
View Source
const (
BuilderServiceAccount = "builder"
)
Variables ¶
This section is empty.
Functions ¶
func Apply ¶ added in v0.20.0
func Apply(obj controllerclient.Object, changeFunc interface{}) func() error
func CSVHasPhase ¶ added in v0.21.0
func CSVHasPhase(goal operatorsv1alpha1.ClusterServiceVersionPhase) gtypes.GomegaMatcher
func HaveMessage ¶ added in v0.20.0
func HaveMessage(goal string) gtypes.GomegaMatcher
func HavePhase ¶ added in v0.20.0
func HavePhase(goal operatorsv1alpha1.InstallPlanPhase) gtypes.GomegaMatcher
func K8sSafeCurrentTestDescription ¶ added in v0.21.0
func K8sSafeCurrentTestDescription() string
func Local ¶ added in v0.20.0
func Local(client operatorclient.ClientInterface) (bool, error)
Local determines whether test is running locally or in a container on openshift-CI. Queries for a clusterversion object specific to OpenShift.
func MaskNotFound ¶ added in v0.20.0
MaskNotFound "masks" an given error by returning nil when it refers to a "NotFound" API status response, otherwise returns the error unaltered.
func SetupGeneratedTestNamespace ¶ added in v0.20.0
func SetupGeneratedTestNamespaceWithOperatorGroup ¶ added in v0.20.0
func SetupGeneratedTestNamespaceWithOperatorGroup(name string, og operatorsv1.OperatorGroup) corev1.Namespace
func TearDown ¶ added in v0.20.0
func TearDown(namespace string)
TearDown deletes all OLM resources in the corresponding namespace and at the cluster scope.
func TeardownNamespace ¶ added in v0.20.0
func TeardownNamespace(ns string)
Types ¶
type FileBasedCatalogProvider ¶ added in v0.20.0
type FileBasedCatalogProvider interface {
GetCatalog() string
}
func NewFileBasedFiledBasedCatalogProvider ¶ added in v0.20.0
func NewFileBasedFiledBasedCatalogProvider(path string) (FileBasedCatalogProvider, error)
func NewRawFileBasedCatalogProvider ¶ added in v0.26.0
func NewRawFileBasedCatalogProvider(data string) (FileBasedCatalogProvider, error)
type MagicCatalog ¶ added in v0.20.0
type MagicCatalog struct {
// contains filtered or unexported fields
}
func NewMagicCatalog ¶ added in v0.20.0
func NewMagicCatalog(kubeClient k8scontrollerclient.Client, namespace string, catalogName string, provider FileBasedCatalogProvider) *MagicCatalog
NewMagicCatalog creates an object that can deploy an arbitrary file-based catalog given by the FileBasedCatalogProvider Keep in mind that there are limits to the configMaps. So, the catalogs need to be relatively simple
func NewMagicCatalogFromFile ¶ added in v0.22.0
func NewMagicCatalogFromFile(kubeClient k8scontrollerclient.Client, namespace string, catalogName string, fbcFilePath string) (*MagicCatalog, error)
func (*MagicCatalog) DeployCatalog ¶ added in v0.20.0
func (c *MagicCatalog) DeployCatalog(ctx context.Context) error
func (*MagicCatalog) GetName ¶ added in v0.22.0
func (c *MagicCatalog) GetName() string
func (*MagicCatalog) GetNamespace ¶ added in v0.22.0
func (c *MagicCatalog) GetNamespace() string
func (*MagicCatalog) UndeployCatalog ¶ added in v0.20.0
func (c *MagicCatalog) UndeployCatalog(ctx context.Context) []error
func (*MagicCatalog) UpdateCatalog ¶ added in v0.21.0
func (c *MagicCatalog) UpdateCatalog(ctx context.Context, provider FileBasedCatalogProvider) error
Directories ¶
Path | Synopsis |
---|---|
Package ctx provides information about the Kubernetes cluster under test, as well as optional functionality for provisioning (i.e., creating new clusters) and installing (i.e., deploying operators and supporting resources into clusters).
|
Package ctx provides information about the Kubernetes cluster under test, as well as optional functionality for provisioning (i.e., creating new clusters) and installing (i.e., deploying operators and supporting resources into clusters). |
data
|
|
Click to show internal directories.
Click to hide internal directories.