package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
CleanupServiceResources cleans up service Type=LoadBalancer resources.
CreateServiceForSimpleApp returns a service that selects/exposes pods (send -1 ports if no exposure needed) with an app label.
CreateServiceForSimpleAppWithPods is a convenience wrapper to create a service and its matching pods all at once.
CreateServiceSpec returns a Service object for testing.
GetIngressPoint returns a host on which ingress serves.
GetServiceLoadBalancerCreationTimeout returns a timeout value for creating a load balancer of a service.
GetServiceLoadBalancerPropagationTimeout returns a timeout value for propagating a load balancer of a service.
GetServicesProxyRequest returns a request for a service proxy.
GetUnusedStaticNodePort returns a free port in static range and a nil value If no port in static range is available it returns -1 and an error value Note that it is not guaranteed that the returned port is actually available on the apiserver; You must allocate a port, then attempt to create the service, then call ReserveStaticNodePort.
NewTestJig allocates and inits a new TestJig.
ReleaseStaticNodePort releases the specified port.
ReserveStaticNodePort reserves the port provided as input.
TestReachableHTTP tests that the given host serves HTTP on the given port.
TestReachableHTTPWithRetriableErrorCodes tests that the given host serves HTTP on the given port with the given retriableErrCodes.
UpdateService fetches a service, calls the update function on it, and then attempts to send the updated service.
WaitForServiceDeletedWithFinalizer waits for the service with finalizer to be deleted.
WaitForServiceUpdatedWithFinalizer waits for the service to be updated to have or don't have a finalizer.
# Constants
KubeProxyEndpointLagTimeout is the maximum time a kube-proxy daemon on a node is allowed to not notice an Endpoint update.
KubeProxyLagTimeout is the maximum time a kube-proxy daemon on a node is allowed to not notice a Service update, such as type=NodePort.
LargeClusterMinNodesNumber is the number of nodes which a large cluster consists of.
LoadBalancerCleanupTimeout is the time required by the loadbalancer to cleanup, proportional to numApps/Ing.
LoadBalancerLagTimeoutAWS is the delay between ELB creation and serving traffic on AWS.
LoadBalancerLagTimeoutDefault is the maximum time a load balancer is allowed to not respond after creation.
LoadBalancerPollInterval is the interval value in which the loadbalancer polls.
MaxNodesForEndpointsTests is the max number for testing endpoints.
RespondingTimeout is how long to wait for a service to be responding.
ServiceEndpointsTimeout is the maximum time in which endpoints for the service should be created.
ServiceReachabilityShortPollTimeout is the maximum time in which service must be reachable during polling.
TestTimeout is used for most polling/waiting activities.
# Variables
NodePortRange should match whatever the default/configured range is.