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 ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Logf ¶
func (ctx TestContext) Logf(f string, v ...interface{})
func (TestContext) RESTConfig ¶
func (ctx TestContext) RESTConfig() *rest.Config
func (TestContext) Scheme ¶
func (ctx TestContext) Scheme() *runtime.Scheme
Click to show internal directories.
Click to hide internal directories.