const largeClusterThreshold … // WaitForAllNodesSchedulable waits up to timeout for all // (but TestContext.AllowedNotReadyNodes) to become schedulable. func WaitForAllNodesSchedulable(ctx context.Context, c clientset.Interface, timeout time.Duration) error { … } // AddOrUpdateLabelOnNode adds the given label key and value to the given node or updates value. func AddOrUpdateLabelOnNode(c clientset.Interface, nodeName string, labelKey, labelValue string) { … } // ExpectNodeHasLabel expects that the given node has the given label pair. func ExpectNodeHasLabel(ctx context.Context, c clientset.Interface, nodeName string, labelKey string, labelValue string) { … } // RemoveLabelOffNode is for cleaning up labels temporarily added to node, // won't fail if target label doesn't exist or has been removed. func RemoveLabelOffNode(c clientset.Interface, nodeName string, labelKey string) { … } // ExpectNodeHasTaint expects that the node has the given taint. func ExpectNodeHasTaint(ctx context.Context, c clientset.Interface, nodeName string, taint *v1.Taint) { … } // NodeHasTaint returns true if the node has the given taint, else returns false. func NodeHasTaint(ctx context.Context, c clientset.Interface, nodeName string, taint *v1.Taint) (bool, error) { … } // AllNodesReady checks whether all registered nodes are ready. Setting -1 on // framework.TestContext.AllowedNotReadyNodes will bypass the post test node readiness check. // TODO: we should change the AllNodesReady call in AfterEach to WaitForAllNodesHealthy, // and figure out how to do it in a configurable way, as we can't expect all setups to run // default test add-ons. func AllNodesReady(ctx context.Context, c clientset.Interface, timeout time.Duration) error { … } func allNodesReady(ctx context.Context, c clientset.Interface, timeout time.Duration) error { … } // taintExists checks if the given taint exists in list of taints. Returns true if exists false otherwise. func taintExists(taints []v1.Taint, taintToFind *v1.Taint) bool { … } // IsARM64 checks whether the k8s Node has arm64 arch. func IsARM64(node *v1.Node) bool { … }