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

# Functions

AddTaintToNode add taints to specific node.
CleanupNodes cleans all nodes which were created during integration test.
CleanupPods deletes the given pods and waits for them to be actually deleted.
CleanupTest cleans related resources which were created during integration test.
CreateAndWaitForNodesInCache calls createNodes(), and wait for the created nodes to be present in scheduler cache.
CreateGCController creates a garbage controller and returns a run function for it.
CreateNamespaceController creates a namespace controller and returns a run function for it.
CreatePausePod creates a pod with "Pause" image and the given config and return its pointer and error status.
CreatePausePodWithResource creates a pod with "Pause" image and the given resources and returns its pointer and error status.
CreatePV creates a PersistentVolume with the given config and returns its pointer and error status.
CreatePVC creates a PersistentVolumeClaim with the given config and returns its pointer and error status.
DeletePod deletes the given pod in the given namespace.
DeletePV deletes the given PV in the given namespace.
DeletePVC deletes the given PVC in the given namespace.
GetTolerationSeconds gets the period of time the toleration.
InitDisruptionController initializes and runs a Disruption Controller to properly update PodDisuptionBudget objects.
InitPausePod initializes a pod API object from the given config.
InitPodWithContainers initializes a pod API object from the given config.
InitTestAPIServer initializes a test environment and creates an API server with default configuration.
InitTestDisablePreemption initializes a test environment and creates API server and scheduler with default configuration but with pod preemption disabled.
InitTestScheduler initializes a test environment and creates a scheduler with default configuration.
InitTestSchedulerWithNS initializes a test environment and creates API server and scheduler with default configuration.
InitTestSchedulerWithOptions initializes a test environment and creates a scheduler with default configuration and other options.
NextPodOrDie returns the next Pod in the scheduler queue.
NodeCopyWithConditions duplicates the ode object with conditions.
NodeReadyStatus returns the status of first condition with type NodeReady.
NodeTainted return a condition function that returns true if the given node contains the taints.
PodDeleted returns true if a pod is not found in the given namespace.
PodIsGettingEvicted returns true if the pod's deletion timestamp is set.
PodScheduled checks if the pod has been scheduled.
PodScheduledIn returns true if a given pod is placed onto one of the expected nodes.
PodSchedulingError returns a condition function that returns true if the given pod gets unschedulable status for reasons other than "Unschedulable".
PodSchedulingGated returns a condition function that returns true if the given pod gets unschedulable status of reason 'SchedulingGated'.
PodsCleanedUp returns true if all pods are deleted in the specific namespace.
PodUnschedulable returns a condition function that returns true if the given pod gets unschedulable status of reason 'Unschedulable'.
RemovePodFinalizers removes pod finalizers for the pods.
RemoveTaintOffNode removes a specific taint from a node.
RunPausePod creates a pod with "Pause" image and the given config and waits until it is scheduled.
RunPodWithContainers creates a pod with given config and containers and waits until it is scheduled.
StartFakePVController is a simplified pv controller logic that sets PVC VolumeName and annotation for each PV binding.
StartScheduler configures and starts a scheduler given a handle to the clientSet interface and event broadcaster.
SyncSchedulerInformerFactory starts informer and waits for caches to be synced.
UpdateNodeStatus updates the status of node.
WaitCachedPodsStable waits until scheduler cache has the given pods.
WaitForNodesInCache ensures at least <nodeCount> nodes are present in scheduler cache within 30 seconds; otherwise returns false.
WaitForNodeTaints waits for a node to have the target taints and returns an error if it does not have taints within the given timeout.
WaitForPDBsStable waits for PDBs to have "CurrentHealthy" status equal to the expected values.
WaitForPodSchedulingGated waits for a pod to be in scheduling gated state and returns an error if it does not fall into this state within the given timeout.
WaitForPodToSchedule waits for a pod to get scheduled and returns an error if it does not get scheduled within the timeout duration (30 seconds).
WaitForPodToScheduleWithTimeout waits for a pod to get scheduled and returns an error if it does not scheduled within the given timeout.
WaitForPodUnschedulable waits for a pod to fail scheduling and returns an error if it does not become unschedulable within the timeout duration (30 seconds).
WaitForPodUnschedulableWithTimeout waits for a pod to fail scheduling and returns an error if it does not become unschedulable within the given timeout.
WaitForReflection waits till the passFunc confirms that the object it expects to see is in the store.
WaitForSchedulerCacheCleanup waits for cleanup of scheduler's cache to complete.

# Structs

TestContext store necessary context info.

# Type aliases

ShutdownFunc represents the function handle to be called, typically in a defer handler, to shutdown a running module.