Documentation
¶
Overview ¶
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).
Index ¶
- func Install(_ *TestContext) error
- func MustInstall(ctx *TestContext)
- func MustProvision(ctx *TestContext) func()
- func Provision(ctx *TestContext) (func(), error)
- type TestContext
- func (ctx TestContext) Client() k8scontrollerclient.Client
- func (ctx TestContext) DumpNamespaceArtifacts(namespace string) error
- func (ctx TestContext) DynamicClient() dynamic.Interface
- func (ctx TestContext) E2EClient() *util.E2EKubeClient
- func (ctx TestContext) KubeClient() operatorclient.ClientInterface
- func (ctx TestContext) Logf(f string, v ...interface{})
- func (ctx TestContext) NewE2EClientSession()
- func (ctx TestContext) OperatorClient() versioned.Interface
- func (ctx TestContext) PackageClient() pversioned.Interface
- func (ctx TestContext) RESTConfig() *rest.Config
- func (ctx TestContext) SSAClient() *controllerclient.ServerSideApplier
- func (ctx TestContext) Scheme() *runtime.Scheme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(_ *TestContext) error
func MustInstall ¶
func MustInstall(ctx *TestContext)
func MustProvision ¶
func MustProvision(ctx *TestContext) func()
func Provision ¶
func Provision(ctx *TestContext) (func(), error)
Types ¶
type TestContext ¶
type TestContext struct {
// contains filtered or unexported fields
}
TestContext represents the environment of an executing test. It can be considered roughly analogous to a kubeconfig context.
func Ctx ¶
func Ctx() *TestContext
Ctx returns a pointer to the global test context. During parallel test executions, Ginkgo starts one process per test "node", and each node will have its own context, which may or may not point to the same test cluster.
func (TestContext) Client ¶
func (ctx TestContext) Client() k8scontrollerclient.Client
func (TestContext) DumpNamespaceArtifacts ¶ added in v0.20.0
func (ctx TestContext) DumpNamespaceArtifacts(namespace string) error
func (TestContext) DynamicClient ¶
func (ctx TestContext) DynamicClient() dynamic.Interface
func (TestContext) E2EClient ¶ added in v0.21.0
func (ctx TestContext) E2EClient() *util.E2EKubeClient
func (TestContext) KubeClient ¶
func (ctx TestContext) KubeClient() operatorclient.ClientInterface
func (TestContext) Logf ¶
func (ctx TestContext) Logf(f string, v ...interface{})
func (TestContext) NewE2EClientSession ¶ added in v0.21.0
func (ctx TestContext) NewE2EClientSession()
func (TestContext) OperatorClient ¶
func (ctx TestContext) OperatorClient() versioned.Interface
func (TestContext) PackageClient ¶
func (ctx TestContext) PackageClient() pversioned.Interface
func (TestContext) RESTConfig ¶
func (ctx TestContext) RESTConfig() *rest.Config
func (TestContext) SSAClient ¶
func (ctx TestContext) SSAClient() *controllerclient.ServerSideApplier
func (TestContext) Scheme ¶
func (ctx TestContext) Scheme() *runtime.Scheme
Click to show internal directories.
Click to hide internal directories.