Documentation ¶
Index ¶
- Variables
- func CreateHostPortPods(ctx context.Context, f *framework.Framework, id string, replicas int, ...)
- func CreateNodeSelectorPods(ctx context.Context, f *framework.Framework, id string, replicas int, ...) error
- func Get2NodesThatCanRunPod(ctx context.Context, f *framework.Framework) []string
- func GetNodeThatCanRunPod(ctx context.Context, f *framework.Framework) string
- func GetPodsScheduled(workerNodes sets.Set[string], pods *v1.PodList) (scheduledPods, notScheduledPods []v1.Pod)
- func SpreadRCOrFail(ctx context.Context, f *framework.Framework, replicaCount int32, ...)
- func SpreadServiceOrFail(ctx context.Context, f *framework.Framework, replicaCount int, ...)
- func WaitForSchedulerAfterAction(ctx context.Context, f *framework.Framework, action Action, ns, podName string, ...)
- func WaitForStableCluster(c clientset.Interface, workerNodes sets.Set[string]) int
- type Action
- type Resource
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SIGDescribe annotates the test with the SIG label. SIGDescribe = framework.SIGDescribe("scheduling") )
Functions ¶
func CreateHostPortPods ¶
func CreateHostPortPods(ctx context.Context, f *framework.Framework, id string, replicas int, expectRunning bool)
CreateHostPortPods creates RC with host port 4321
func CreateNodeSelectorPods ¶ added in v1.8.0
func CreateNodeSelectorPods(ctx context.Context, f *framework.Framework, id string, replicas int, nodeSelector map[string]string, expectRunning bool) error
CreateNodeSelectorPods creates RC with host port 4321 and defines node selector
func Get2NodesThatCanRunPod ¶ added in v1.18.0
Get2NodesThatCanRunPod return a 2-node slice where can run pod.
func GetNodeThatCanRunPod ¶
GetNodeThatCanRunPod trying to launch a pod without a label to get a node which can launch it
func GetPodsScheduled ¶ added in v1.18.0
func GetPodsScheduled(workerNodes sets.Set[string], pods *v1.PodList) (scheduledPods, notScheduledPods []v1.Pod)
GetPodsScheduled returns a number of currently scheduled and not scheduled Pods on worker nodes.
func SpreadRCOrFail ¶ added in v1.10.0
func SpreadRCOrFail(ctx context.Context, f *framework.Framework, replicaCount int32, zoneNames sets.Set[string], image string, args []string)
SpreadRCOrFail Check that the pods comprising a replication controller get spread evenly across available zones
func SpreadServiceOrFail ¶ added in v1.10.0
func SpreadServiceOrFail(ctx context.Context, f *framework.Framework, replicaCount int, zoneNames sets.Set[string], image string)
SpreadServiceOrFail check that the pods comprising a service get spread evenly across available zones
Types ¶
Click to show internal directories.
Click to hide internal directories.