consts

package
v3.1.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitCodeIncompatibleOptions is a POSIX compliant exit code for the test suite to
	// indicate that some combination of provided configurations were not compatible.
	ExitCodeIncompatibleOptions = 100

	// ExitCodeInvalidOptions is a POSIX compliant exit code for the test suite to indicate
	// that some of the provided runtime options were not valid and the tests could not run.
	ExitCodeInvalidOptions = 101

	// ExitCodeCantUseExistingCluster is a POSIX compliant exit code for the test suite to
	// indicate that an existing cluster provided for the tests was not usable.
	ExitCodeCantUseExistingCluster = 101

	// ExitCodeCantCreateCluster is a POSIX compliant exit code for the test suite to indicate
	// that a failure occurred when trying to create a Kubernetes cluster to run the tests.
	ExitCodeCantCreateCluster = 102

	// ExitCodeCleanupFailed is a POSIX compliant exit code for the test suite to indicate
	// that a failure occurred during cluster cleanup.
	ExitCodeCleanupFailed = 103

	// ExitCodeEnvSetupFailed is a generic exit code that can be used as a fallback for general
	// problems setting up the testing environment and/or cluster.
	ExitCodeEnvSetupFailed = 104

	// ExitCodeCantCreateLogger is a POSIX compliant exit code for the test suite to indicate
	// that a failure occurred when trying to create a logger for the test suite.
	ExitCodeCantCreateLogger = 105
)
View Source
const (
	// JPEGMagicNumber is the magic number that identifies a JPEG file. This can be used to identify the file type
	// returned from HTTPBin backends when using `/image/*` endpoints.
	JPEGMagicNumber = "\xff\xd8\xff\xe0\x00\x10JFIF"

	// PNGMagicNumber is the magic number that identifies a PNG file. This can be used to identify the file type
	// returned from HTTPBin backends when using `/image/*` endpoints.
	PNGMagicNumber = "\x89PNG\r\n\x1a\n"
)
View Source
const (
	// KongTestPassword is used as a password only within the context of transient integration test runs
	// and is left static to help developers debug failures in those testing environments.
	KongTestPassword = "password"

	// KongTestWorkspace is used as a workspace only within the context of transient integration test runs
	// when Kong Enterprise is enabled and a database is used (DBmode != off) and is left static to help
	// developers debug failures in those testing environments.
	KongTestWorkspace = "notdefault"

	// IngressClass indicates the ingress class name which the tests will use for supported object reconciliation.
	IngressClass = "kongtests"

	// ControllerNamespace is the Kubernetes namespace where the controller is deployed.
	ControllerNamespace = "kong"
)
View Source
const (
	GatewayAPIVersion                   = "v1.0.0"
	GatewayStandardCRDsKustomizeURL     = "github.com/kubernetes-sigs/gateway-api/config/crd/?ref=v1.0.0"
	GatewayExperimentalCRDsKustomizeURL = "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v1.0.0"
	GatewayRawRepoURL                   = "https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/v1.0.0"
)
View Source
const (
	// DefaultFeatureGates is the default feature gates setting that should be
	// provided if none are provided by the user. This generally includes features
	// that are innocuous, or otherwise don't actually get triggered unless the
	// user takes further action.
	DefaultFeatureGates = "GatewayAlpha=true,KongServiceFacade=true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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