package
1.3.0-alpha.1
Repository: https://github.com/foolusion/kubernetes.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AddCleanupAction installs a function that will be called in the event of the whole test being terminated.
Prints the histogram of the events and returns the number of bad events.
No description provided by the author
CheckConnectivityToHost launches a pod running wget on the specified node to test connectivity to the specified host.
ClusterLevelLoggingWithElasticsearch is an end to end test for cluster level logging.
ClusterLevelLoggingWithKibana is an end to end test that checks to see if Kibana is alive.
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.
Delete a Replication Controller and all pods it spawned.
Delete a ReplicaSet and all pods it spawned.
Diff computes a PodDiff given 2 lists of pods.
EnsureLoadBalancerResourcesDeleted ensures that cloud load balancer resources that were created are actually cleaned up.
FailedContainers inspects all containers in a pod and returns failure information for containers that have failed or been restarted.
No description provided by the author
GetKubeletPods retrieves the list of pods on the kubelet.
GetKubeletRunningPods retrieves the list of running pods on the kubelet.
GetReadyNodes retrieves a list of schedulable nodes whose condition is Ready.
No description provided by the author
HighLatencyKubeletOperations logs and counts the high latency metrics exported by the kubelet server via /metrics.
Prints top five summary metrics for request types with latency and returns number of such request types above threshold.
Wrapper function for ginkgo describe.
LaunchHostExecPod launches a hostexec pod in the given namespace and waits until it's Running.
No description provided by the author
LaunchWebserverPod launches a pod serving http on port 8080 to act as the target for networking connectivity checks.
Convenient wrapper around listing nodes supporting retries.
No description provided by the author
No description provided by the author
NewFramework makes a new framework and sets up a BeforeEach/AfterEach for you (you can write additional before/after each functions).
No description provided by the author
No description provided by the author
NewHostExecPodSpec returns the pod spec of hostexec pod.
NewLogsVerifier creates a new LogsSizeVerifier which will stop when stopChannel is closed.
No description provided by the author
NewRestartConfig creates a restartDaemonConfig for the given node and daemon.
No description provided by the author
NewServiceTestJig allocates and inits a new ServiceTestJig.
TODO this still defaults to replication controller.
NodeAddresses returns the first address of the given type of each node.
NodeProxyRequest performs a get on a node proxy endpoint given the nodename and rest client.
NodeSSHHosts returns SSH-able host names for all schedulable nodes - this excludes master node.
OpenWebSocketForURL constructs a websocket connection to the provided URL, using the client config, with the specified protocols.
ParseKubeletMetrics reads metrics from the kubelet server running on the given node.
No description provided by the author
Query sends a command to the server and returns the Response.
No description provided by the author
RemoveCleanupAction removes a function that was installed by AddCleanupAction.
A basic test to check the deployment of an image using a ReplicaSet.
No description provided by the author
No description provided by the author
RunCleanupActions runs all functions installed by AddCleanupAction.
RunDeployment Launches (and verifies correctness) of a Deployment and will wait for all pods it spawns to become "Running".
TestE2E checks configuration parameters (specified through flags) and then runs E2E tests using the Ginkgo runner.
RunHostCmd runs the given cmd in the context of the given pod using `kubectl exec` inside of a shell.
RunHostCmdOrDie calls RunHostCmd and dies on error.
RunRC Launches (and verifies correctness) of a Replication Controller and will wait for all pods it spawns to become "Running".
RunReplicaSet launches (and verifies correctness) of a ReplicaSet and waits until all the pods it launches to reach the "Running" state.
No description provided by the author
A basic test to check the deployment of an image using a replication controller.
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
No description provided by the author
Check that the pods comprising a replication controller get spread evenly across available zones.
Check that the pods comprising a service get spread evenly across available zones.
SSH synchronously SSHs to a node running on provider and runs cmd.
Verifies whether 50, 90 and 99th percentiles of PodStartupLatency are within the threshold.
Verifies (currently just by logging them) the scheduling latencies.
# Constants
No description provided by the author
No description provided by the author
NodeStartupThreshold is a rough estimate of the time allocated for a pod to start on a node.
NodeStartupThreshold is a rough estimate of the time allocated for a pod to start on a node.
NodeStartupThreshold is a rough estimate of the time allocated for a pod to start on a node.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
Maximum container failures this test tolerates before failing.
This should match whatever the default/configured range is.
# Structs
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
Framework supports common operations used by e2e tests; it will keep a client & a namespace for you.
No description provided by the author
HPAScaleTest struct is used by the scale(...) function.
No description provided by the author
No description provided by the author
KubeletMetric stores metrics scraped from the kubelet server's /metric endpoint.
No description provided by the author
Dashboard metrics.
LogSizeGatherer is a worker which grabs a WorkItem from the channel and does assigned work.
No description provided by the author
LogsSizeVerifier gathers data about log files sizes from master and node machines.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResourceConsumer is a tool for testing.
No description provided by the author
No description provided by the author
Simple helper class to avoid too much boilerplate in tests.
A test jig to help testing.
No description provided by the author
No description provided by the author
No description provided by the author
partially cloned from webserver.go.
No description provided by the author
TimestampedSize contains a size together with a time of measurement.
Configuration of one tests.
WorkItem is a command for a worker that contains an IP of machine from which we want to gather data and paths to all files we're interested in.
# Interfaces
LBCTester is an interface used to test loadbalancer controllers.
No description provided by the author
# Type aliases
No description provided by the author
KubeletMetricByLatency implements sort.Interface for []KubeletMetric based on the latency field.
No description provided by the author
node -> file -> data.
No description provided by the author
PodDiff is a map of pod name to podInfos.
No description provided by the author
No description provided by the author
we can't have int here, as JSON does not accept integer keys.