Documentation
¶
Index ¶
- func ClusterVersion() string
- func ControllerFeatureGates() string
- func DBMode() string
- func EnvironmentReadyTimeout() time.Duration
- func ExistingClusterName() string
- func KeepTestCluster() string
- func KongEnterpriseEnabled() bool
- func KongImage() string
- func KongPullPassword() string
- func KongPullUsername() string
- func KongRouterFlavor() string
- func KongTag() string
- func WaitForClusterDelete() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterVersion ¶
func ClusterVersion() string
ClusterVersion indicates the version of Kubernetes to use for the tests (if the cluster was not provided by the caller).
func ControllerFeatureGates ¶
func ControllerFeatureGates() string
ControllerFeatureGates contains the feature gates that should be enabled for test runs in the controller. If none specified, we fall back to default values.
func DBMode ¶
func DBMode() string
DBMode indicates the database backend of the test cluster ("off" and "postgres" are supported).
func EnvironmentReadyTimeout ¶ added in v2.10.0
EnvironmentReadyTimeout returns the amount of time that will be given to wait for the environment ready, including all the dependencies (kong, metallb, etc) used here to make up a context to pass into environments.WaitForReady to trigger cleanup when timed out.
func ExistingClusterName ¶
func ExistingClusterName() string
ExistingClusterName indicates whether or not the caller is providing their own cluster for running the tests. These need to come in the format <TYPE>:<NAME> (e.g. "kind:<NAME>", "gke:<NAME>", e.t.c.).
func KeepTestCluster ¶
func KeepTestCluster() string
KeepTestCluster indicates whether the caller wants the cluster created by the test suite to persist after the test for inspection. This has a nil effect when an existing cluster is provided, as cleanup is not performed for existing clusters.
func KongEnterpriseEnabled ¶
func KongEnterpriseEnabled() bool
KongEnterpriseEnabled enables Enterprise-specific tests when set to "true".
func KongPullPassword ¶
func KongPullPassword() string
KongPullPassword is the Docker password to use for the Kong image pull secret.
func KongPullUsername ¶
func KongPullUsername() string
KongPullUsername is the Docker username to use for the Kong image pull secret.
func KongRouterFlavor ¶
func KongRouterFlavor() string
KongRouterFlavor returns router mode of Kong in tests. Currently supports: - `traditional` - `traditional_compatible`. - `expressions` (experimental, only for testing expression route related tests).
func WaitForClusterDelete ¶
func WaitForClusterDelete() bool
WaitForClusterDelete indicates whether or not to wait for cluster deletion to complete.
Types ¶
This section is empty.