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

# Functions

CheckHostname verifies that all Pods in ss have the correct Hostname.
CheckMount checks that the mount at mountPath is valid for all Pods in ss.
CheckPodIndexLabel asserts that the pods for ss have expected index label and values.
CheckServiceName asserts that the ServiceName for ss is equivalent to expectedServiceName.
CreateStatefulSet creates a StatefulSet from the manifest at manifestPath in the Namespace ns using kubectl create.
DeleteAllStatefulSets deletes all StatefulSet API Objects in Namespace ns.
ExecInStatefulPods executes cmd in all Pods in ss.
GetPodList gets the current Pods in ss.
NewStatefulSet creates a new Webserver StatefulSet for testing.
NewStatefulSetPVC returns a PersistentVolumeClaim named name, for testing StatefulSets.
PauseNewPods adds an always-failing ReadinessProbe to the StatefulSet PodTemplate.
Restart scales ss to 0 and then back to its previous number of replicas.
ResumeNextPod allows the next Pod in the StatefulSet to continue by removing the ReadinessProbe added by PauseNewPods(), if it's still there.
Saturate waits for all Pods in ss to become Running and Ready.
Scale scales ss to count replicas.
SortStatefulPods sorts pods by their ordinals.
UpdateReplicas updates the replicas of ss to count.
WaitForPodReady waits for the Pod named podName in set to exist and have a Ready condition.
WaitForRunning waits for numPodsRunning in ss to be Running and for the first numPodsReady ordinals to be Ready.
WaitForRunningAndReady waits for numStatefulPods in ss to be Running and Ready.
WaitForState periodically polls for the ss and its pods until the until function returns either true or an error.
WaitForStatusAvailableReplicas waits for the ss.Status.Available to be equal to expectedReplicas.
WaitForStatusReadyReplicas waits for the ss.Status.ReadyReplicas to be equal to expectedReplicas.
WaitForStatusReplicas waits for the ss.Status.Replicas to be equal to expectedReplicas.

# Constants

StatefulPodTimeout is a timeout for stateful pods to change state.
StatefulSetPoll is a poll interval for StatefulSet tests.
StatefulSetTimeout is a timeout interval for StatefulSet operations.