package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

AssertRequestResponseAsCBOR returns a transport.WrapperFunc that will report a test error if a non-empty request or response body contains data that does not appear to be CBOR-encoded.
CreateNamespaceOrDie creates a namespace.
DefaultEtcdOptions are the default EtcdOptions for use with integration tests.
DefaultOpenAPIConfig returns an openapicommon.Config initialized to default values.
DefaultOpenAPIV3Config returns an openapicommon.Config initialized to default values.
DefaultAPIServerFlags returns the default flags used to run kube-apiserver on tests.
DeleteNamespaceOrDie deletes a namespace.
EtcdMain starts an etcd instance before running tests.
Filter filters nodes in NodeList in place, removing nodes that do not satisfy the given condition.
GetEtcdURL returns the URL of the etcd instance started by EtcdMain or StartEtcd.
GoleakCheck sets up leak checking for a test or benchmark.
IgnoreBackgroundGoroutines returns options for goleak.Find which ignore goroutines created by "go test" and init functions, like the one from go.opencensus.io/stats/view/worker.go.
IsConditionSetAsExpected returns a wantTrue value if the node has a match to the conditionType, otherwise returns an opposite value of the wantTrue with detailed logging.
IsConditionSetAsExpectedSilent returns a wantTrue value if the node has a match to the conditionType, otherwise returns an opposite value of the wantTrue.
IsNodeReady returns true if: 1) it's Ready condition is set to true 2) doesn't have NetworkUnavailable condition set to true.
IsNodeSchedulable returns true if: 1) doesn't have "unschedulable" field set 2) it also returns true from IsNodeReady.
NewTBWriter creates an io.Writer which turns each write into a tb.Log call.
RedirectKlog modifies the global klog logger so that it writes via the given writer.
RunCustomEtcd starts a custom etcd instance for test purposes.
SharedEtcd creates a storage config for a shared etcd instance, with a unique prefix.
StartEtcd starts an etcd instance inside a test.
StartTestServer runs a kube-apiserver, optionally calling out to the setup.ModifyServerRunOptions and setup.ModifyServerConfig functions TODO (pohly): convert to ktesting contexts.

# Constants

# Structs

TestServerSetup holds configuration information for a kube-apiserver test server.

# Type aliases