integration

package
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// BlueGreenControllerEnabled indicates whether the blue-green controller
	// should be enabled in the controller manager for tests in this suite.
	BlueGreenControllerEnabled = strings.ToLower(os.Getenv("KONG_OPERATOR_BLUEGREEN_CONTROLLER")) == "true"
)

Functions

func GetClients added in v2.1.1

func GetClients() testutils.K8sClients

GetClients returns the Kubernetes clients used by the test suite. It allows interaction in tests with environment bootstrapped by TestMain.

func GetCtx added in v2.1.1

func GetCtx() context.Context

GetCtx returns the context used by the test suite. It allows interaction in tests with environment bootstrapped by TestMain.

func GetEnv added in v2.1.1

func GetEnv() environments.Environment

GetEnv returns the environment used by the test suite. It allows interaction in tests with environment bootstrapped by TestMain.

func GetKongPluginImageRegistryCredentialsForTests

func GetKongPluginImageRegistryCredentialsForTests() string

GetKongPluginImageRegistryCredentialsForTests returns the credentials for the image registry with plugins for tests. The expected format is the same as ~/.docker/config.json, see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#log-in-to-docker-hub

func Suite added in v2.1.1

func Suite(m *testing.M)

Suite sets up the testing environment for the integration test suite. It is intended to be called from TestMain in the respective test package.

Types

This section is empty.

Directories

Path Synopsis
kic

Jump to

Keyboard shortcuts

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