package
0.7.0
Repository: https://github.com/kong/gateway-operator.git
Documentation: pkg.go.dev

# Functions

BuildEnvironment builds the k8s environment for the tests.
BuildMTLSCredentials builds the mTLS credentials for the tests.
ControlPlaneDetectedNoDataplane is a helper function for tests that returns a function that can be used to check if a ControlPlane detected unset dataplane.
ControlPlaneHasActiveDeployment is a helper function for tests that returns a function that can be used to check if a ControlPlane has an active deployment.
ControlPlaneHasClusterRole is a helper function for tests that returns a function that can be used to check if a ControlPlane has a ClusterRole.
ControlPlaneHasClusterRoleBinding is a helper function for tests that returns a function that can be used to check if a ControlPlane has a ClusterRoleBinding.
No description provided by the author
ControlPlaneIsNotReady is a helper function for tests.
ControlPlaneIsProvisioned is a helper function for tests that returns a function that can be used to check if a ControlPlane was provisioned.
ControlPlaneIsReady is a helper function for tests.
ControlPlaneIsScheduled is a helper function for tests that returns a function that can be used to check if a ControlPlane was scheduled.
DataPlaneHasActiveDeployment is a helper function for tests that returns a function that can be used to check if a DataPlane has an active deployment.
DataPlaneHasActiveService is a helper function for tests that returns a function that can be used to check if a DataPlane has an active proxy service.
DataPlaneHasDeployment is a helper function for tests that returns a function that can be used to check if a DataPlane has a Deployment.
No description provided by the author
DataPlaneHasService is a helper function for tests that returns a function that can be used to check if a DataPlane has a service created.
DataPlaneHasServiceAndAddressesInStatus is a helper function for tests that returns a function that can be used to check if a DataPlane has: - a backing service name in its .Service status field - a list of addreses of its backing service in its .Addresses status field Should be used in conjunction with require.Eventually or assert.Eventually.
No description provided by the author
DataPlaneIsReady is a helper function for tests that returns a function that can be used to check if a DataPlane is ready.
DataPlanePredicate is a helper function for tests that returns a function that can be used to check if a DataPlane has a certain state.
DataPlaneServiceHasNActiveEndpoints is a helper function for tests that returns a function that can be used to check if a Service has active endpoints.
DataPlaneUpdateEventually is a helper function for tests that returns a function that can be used to update the DataPlane.
DeployCRDs deploys the CRDs commonly used in tests.
GatewayClassIsAccepted is a helper function for tests that returns a function that can be used to check if a GatewayClass is accepted.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GatewayNetworkPoliciesExist is a helper function for tests that returns a function that can be used to check if a Gateway owns a networkpolicy.
GatewayNetworkPolicyForGatewayContainsRules is a helper function for tets that returns a function that can be used to check if exactly 1 NetworkPolicy exist for Gateway and if it contains all the provided rules.
GatewayNotExist is a helper function for tests that returns a function to check a if gateway(with specified namespace and name) does not exist.
GenerateGateway generates a Gateway to be used in tests.
GenerateGatewayClass generates the default GatewayClass to be used in tests.
GenerateGatewayConfiguration generates a GatewayConfiguration to be used in tests.
No description provided by the author
MustGetGateway is a helper function for tests that conveniently gets a gateway by name.
MustListControlPlaneClusterRoleBindings is a helper function for tests that conveniently lists all clusterrolebindings owned by a given controlplane.
MustListControlPlaneClusterRoles is a helper function for tests that conveniently lists all clusterroles owned by a given controlplane.
mustListControlPlaneDeployments is a helper function for tests that conveniently lists all deployments managed by a given controlplane.
MustListControlPlanesForGateway is a helper function for tests that conveniently lists all controlplanes managed by a given gateway.
mustListDataPlaneDeployments is a helper function for tests that conveniently lists all deployments managed by a given controlplane.
MustListServices is a helper function for tests that conveniently lists all proxy services managed by a given dataplane.
MustListDataPlanesForGateway is a helper function for tests that conveniently lists all dataplanes managed by a given gateway.
MustListNetworkPoliciesForGateway is a helper function for tests that conveniently lists all NetworkPolicies managed by a given gateway.
MustListServiceEndpointSlices is a helper function for tests that conveniently lists all endpointSlices related to a specific service.
NewK8sClients returns a new K8sClients struct with all the clients needed by the tests.
Not is a helper function for tests that returns a negation of a predicate.
SetupControllerLogger sets up the controller logger.
WaitForOperatorCRDs waits for the operator CRDs to be available.

# Constants

ControlPlaneCondDeadline is the default timeout for checking on controlplane resources.
ControlPlaneCondTick is the default tick for checking on controlplane resources.
ControlPlaneSchedulingTimeLimit is the maximum amount of time to wait for a supported ControlPlane to be created after a Gateway resource is created.
DataPlaneCondDeadline is the default timeout for checking on dataplane resources.
DataPlaneCondTick is the default tick for checking on dataplane resources.
No description provided by the author
DefaultIngressWait is the default timeout for checking on ingress resources.
GatewayClassAcceptanceTimeLimit is the amount of time that the operator will wait for a GatewayClass to be accepted.
GatewayExperimentalCRDsKustomizeURL is a URL that provides experimental Gateway API CRDs.
GatewayRawRepoURL is the base URL to the raw Gateway API repository.
GatewayReadyTimeLimit is the maximum amount of time to wait for a supported Gateway to be fully provisioned and marked as Ready by the gateway controller.
GatewaySchedulingTimeLimit is the maximum amount of time to wait for a supported Gateway to be marked as Scheduled by the gateway controller.
GatewayStandardCRDsKustomizeURL is a URL that provides standard Gateway API CRDs.
httpBinImage is the container image name we use for deploying the "httpbin" HTTP testing tool.
ObjectUpdateTimeout is the amount of time that will be allowed for conflicts to be resolved before an object update will be considered failed.
SubresourceReadinessWait is the maximum amount of time allowed for sub-resources to become "Ready" after being created on behalf of a parent resource.
tcpEchoImage echoes TCP text sent to it after printing out basic information about its environment, e.g.
WaitIngressTick is the default timeout tick interval for checking on ingress resources.

# Structs

K8sClients is a struct that contains all the Kubernetes clients needed by the tests.

# Type aliases

No description provided by the author