AfterReadingAllFlags makes changes to the context after all flags have been read and prepares the process for a test run.
AnnotatedLocation can be used to provide more informative source code locations by passing the result as additional parameter to a BeforeEach/AfterEach/DeferCleanup/It/etc.
AnnotatedLocationWithOffset skips additional call stack levels.
APIAddress returns a address of an instance.
AppendContainerCommandGroupIfNeeded returns container command group parameter if necessary.
CheckTestingNSDeletedExcept checks whether all e2e based existing namespaces are in the Terminating state and waits until they are finally deleted.
ConformanceIt is wrapper function for ginkgo It.
Context is a wrapper around [ginkgo.Context] which supports framework With* labels as optional arguments in addition to those already supported by ginkgo itself, like [ginkgo.Label] and [ginkgo.Offset].
CoreDump SSHs to the master and all nodes and dumps their logs into dir.
CreateTestingNS should be used by every test, note that we append a common prefix to the provided test name.
DeleteNamespaces deletes all namespaces that match the given delete and skip filters.
Describe is a wrapper around [ginkgo.Describe] which supports framework With* labels as optional arguments in addition to those already supported by ginkgo itself, like [ginkgo.Label] and [ginkgo.Offset].
EnsureLoadBalancerResourcesDeleted ensures that cloud load balancer resources that were created are actually cleaned up.
ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").
Failf logs the fail info, including a stack trace starts with its direct caller (for example, for call chain f -> g -> Failf("foo", ...) error would be logged for "g").
FormatBugs produces a report that includes all bugs recorded earlier via RecordBug.
GetControlPlaneNodes returns a list of control plane nodes.
GetGroupNodes returns a node name for the specified node group.
GetNodeExternalIPs returns a list of external ip address(es) if any for a node.
GetObject takes a get function like clientset.CoreV1().Pods(ns).Get and the parameters for it and returns a function that executes that get operation in a [gomega.Eventually] or [gomega.Consistently].
GetProviders returns the names of all currently registered providers.
Gomega returns an interface that can be used like gomega to express assertions.
GroupSize returns the size of an instance group.
HandleRetry wraps an arbitrary get function.
IgnoreNotFound can be used to wrap an arbitrary function in a call to [ginkgo.DeferCleanup].
It is a wrapper around [ginkgo.It] which supports framework With* labels as optional arguments in addition to those already supported by ginkgo itself, like [ginkgo.Label] and [ginkgo.Offset].
ListObjects takes a list function like clientset.CoreV1().Pods(ns).List and the parameters for it and returns a function that executes that list operation in a [gomega.Eventually] or [gomega.Consistently].
LoadClientset returns clientset for connecting to kubernetes clusters.
LoadConfig returns a config for a rest client with the UserAgent set to include the current test name.
Logf logs the info.
MakeMatcher builds a gomega.Matcher based on a single callback function.
MasterOSDistroIs returns true if the master OS distro is included in the supportedMasterOsDistros.
NewBug creates a new bug with a location that is obtained by skipping a certain number of stack frames.
NewDefaultFramework makes a new framework and sets up a BeforeEach which initializes the framework instance.
NewFlakeReport returns a new flake report.
NewFramework creates a test framework.
NewFrameworkWithCustomTimeouts makes a framework with custom timeouts.
NewTimeoutContext returns a TimeoutContext with all values set either to hard-coded defaults or a value that was configured when running the E2E suite.
NodeOSArchIs returns true if the node OS arch is included in the supportedNodeOsArchs.
NodeOSDistroIs returns true if the node OS distro is included in the supportedNodeOsDistros.
PollInterval defines how long to wait between API server queries while waiting for some condition.
PrettyPrintJSON converts metrics to JSON format.
ProviderIs returns true if the provider is included is the providers.
RandomSuffix provides a random sequence to append to pods,services,rcs.
RecordBug stores information about a bug in the E2E suite source code that cannot be reported through ginkgo.Fail because it was found outside of some test, for example during test registration.
RegisterClusterFlags registers flags specific to the cluster e2e test suite.
RegisterCommonFlags registers flags common to all e2e test suites.
RegisterProvider is expected to be called during application init, typically by an init function in a provider package.
ResizeGroup resizes an instance group.
RetryNotFound wraps an arbitrary get function.
RunCmd runs cmd using args and returns its stdout and stderr.
RunCmdEnv runs cmd with the provided environment and args and returns its stdout and stderr.
SetupProviderConfig validates the chosen provider and creates an interface instance for it.
ShouldRetry decides whether to retry an API request.
SIGDescribe returns a wrapper function for ginkgo.Describe which injects the SIG name as annotation.
StartCmdAndStreamOutput returns stdout and stderr after starting the given cmd.
TagsEqual can be used to check whether two tags are the same.
TryKill is rough equivalent of ctrl+c for cleaning up processes.
WaitForDefaultServiceAccountInNamespace waits for the default service account to be provisioned the default service account is what is associated with pods when they do not specify a service account as a result, pods are not able to be provisioned in a namespace until the service account is provisioned.
WaitForGroupSize waits for node instance group reached the desired size.
WaitForKubeRootCAInNamespace waits for the configmap kube-root-ca.crt containing the service account CA trust bundle to be provisioned in the specified namespace so that pods do not have to retry mounting the config map (which creates noise that hides other issues in the Kubelet).
WaitForNamespacesDeleted waits for the namespaces to be deleted.
WaitForServiceEndpointsNum waits until there are EndpointSlices for serviceName containing a total of expectNum endpoints.
WatchEventSequenceVerifier ..
WithConformace specifies that a certain test or group of tests must pass in all conformant Kubernetes clusters.
WithDisruptive specifies that a certain test or group of tests temporarily affects the functionality of the Kubernetes cluster.
WithEnvironment specifies that a certain test or group of tests only works in a certain environment.
WithEnvironment specifies that a certain test or group of tests only works with a feature available.
WithFeatureGate specifies that a certain test or group of tests depends on a feature gate being enabled.
WithFlaky specifies that a certain test or group of tests are failing randomly.
WithLabel is a wrapper around [ginkgo.Label].
WithNodeConformance specifies that a certain test or group of tests for node functionality that does not depend on runtime or Kubernetes distro specific behavior.
WithSerial specifies that a certain test or group of tests must not run in parallel with other tests.
WithSlow specifies that a certain test or group of tests must not run in parallel with other tests.