package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
CheckSCTPModuleLoadedOnNodes checks whether any node on the list has the sctp.ko module loaded For security reasons, and also to allow clusters to use userspace SCTP implementations, we require that just creating an SCTP Pod/Service/NetworkPolicy must not do anything that would cause the sctp kernel module to be loaded.
DescribeSvc logs the output of kubectl describe svc for the given namespace.
GetHTTPContent returns the content of the given url by HTTP.
GetHTTPContentFromTestContainer returns the content of the given url by HTTP via a test container.
NewIPerf parses an IPerf CSV output line into an IPerfCSVResult.
NewServerTest creates a new TestFixture for the tests.
ParseIPerf2EnhancedResultsFromCSV parses results from iperf2 when given the -e (--enhancedreports) and `--reportstyle C` options.
PokeUDP tries to connect to a host on a port and send the given request.
StartServeHostnameService creates a deployment that serves its hostname and a service on top of it.
StopServeHostnameService stops the given service.
TestHTTPHealthCheckNodePort tests a HTTP connection by the given request to the given host and port.
# Constants
AffinityConfirmCount is the number of needed continuous requests to confirm that affinity is enabled.
AffinityTimeout is the maximum time that CheckAffinity is allowed to take; this needs to be more than long enough for AffinityConfirmCount HTTP requests to complete in a busy CI cluster, but shouldn't be too long since we will end up waiting the entire time in the tests where affinity is not expected.
SessionAffinityTimeout is the number of seconds to wait between requests for session affinity to timeout before trying a load-balancer request again.
UDPBadResponse is UDP poke status which is bad response.
UDPError is UDP poke status which is error.
UDPRefused is UDP poke status which is connection refused.
UDPSuccess is UDP poke status which is success.
UDPTimeout is UDP poke status which is timeout.
# Structs
IPerf2EnhancedCSVResults models the results produced by iperf2 when run with the -e (--enhancedreports) flag.
IPerf2NodeToNodeCSVResults models the results of running iperf2 between a daemonset of clients and a single server.
IPerfCSVResult struct modelling an iperf record...
IPerfResults is a struct that stores some IPerfCSVResult.
TestFixture is a simple helper class to avoid too much boilerplate in tests.
UDPPokeParams is a struct for UDP poke parameters.
UDPPokeResult is a struct for UDP poke result.
# Type aliases
StrSlice represents a string slice.
UDPPokeStatus is string for representing UDP poke status.