ctx

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

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