wait

package
v0.4.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright 2025 NVIDIA CORPORATION SPDX-License-Identifier: Apache-2.0

Copyright 2025 NVIDIA CORPORATION SPDX-License-Identifier: Apache-2.0

Copyright 2025 NVIDIA CORPORATION SPDX-License-Identifier: Apache-2.0

Copyright 2025 NVIDIA CORPORATION SPDX-License-Identifier: Apache-2.0

Copyright 2025 NVIDIA CORPORATION SPDX-License-Identifier: Apache-2.0

Copyright 2025 NVIDIA CORPORATION SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForAtLeastNPodCreation

func ForAtLeastNPodCreation(ctx context.Context, client runtimeClient.WithWatch, selector metav1.LabelSelector, n int)

func ForAtLeastNPodsScheduled

func ForAtLeastNPodsScheduled(ctx context.Context, client runtimeClient.WithWatch, namespace string,
	pods []*v1.Pod, minRequired int)

func ForAtLeastNPodsUnschedulable

func ForAtLeastNPodsUnschedulable(ctx context.Context, client runtimeClient.WithWatch, namespace string,
	pods []*v1.Pod, minRequired int)

func ForAtLeastOnePodCreation

func ForAtLeastOnePodCreation(ctx context.Context, client runtimeClient.WithWatch, selector metav1.LabelSelector)

func ForConfigMapCreation

func ForConfigMapCreation(ctx context.Context, client runtimeClient.WithWatch, namespace, name string)

func ForNoE2EPods

func ForNoE2EPods(ctx context.Context, client runtimeClient.WithWatch)

func ForNoReservationPods

func ForNoReservationPods(ctx context.Context, client runtimeClient.WithWatch)

func ForPodGroupNotReadyEvent

func ForPodGroupNotReadyEvent(ctx context.Context, client runtimeClient.WithWatch, namespace, name string)

func ForPodReady

func ForPodReady(ctx context.Context, client runtimeClient.WithWatch, pod *v1.Pod)

func ForPodScheduled

func ForPodScheduled(ctx context.Context, client runtimeClient.WithWatch, pod *v1.Pod)

func ForPodSucceededOrError

func ForPodSucceededOrError(ctx context.Context, client runtimeClient.WithWatch, pod *v1.Pod)

func ForPodUnschedulable

func ForPodUnschedulable(ctx context.Context, client runtimeClient.WithWatch, pod *v1.Pod)

func ForPodsReady

func ForPodsReady(ctx context.Context, client runtimeClient.WithWatch, namespace string, pods []*v1.Pod)

func ForPodsScheduled

func ForPodsScheduled(ctx context.Context, client runtimeClient.WithWatch, namespace string, pods []*v1.Pod)

func ForPodsToBeDeleted

func ForPodsToBeDeleted(ctx context.Context, client runtimeClient.WithWatch, listOptions ...runtimeClient.ListOption)

func ForPodsWithCondition

func ForPodsWithCondition(
	ctx context.Context, client runtimeClient.WithWatch, checkCondition checkCondition,
	listOptions ...runtimeClient.ListOption)

func ForRolloutRestartDeployment

func ForRolloutRestartDeployment(ctx context.Context, client runtimeClient.WithWatch, namespace, name string) error

func ForRunaiComponentPod

func ForRunaiComponentPod(
	ctx context.Context, client runtimeClient.WithWatch,
	appLabelComponentName string, condition checkCondition,
)

func ForRunningSystemComponentEvent

func ForRunningSystemComponentEvent(ctx context.Context, client runtimeClient.WithWatch, appLabelComponentName string)

func PatchSystemDeploymentFeatureFlags

func PatchSystemDeploymentFeatureFlags(
	ctx context.Context,
	kubeClientset kubernetes.Interface,
	controllerClient runtimeClient.WithWatch,
	namespace string,
	deploymentName string,
	containerName string,
	featureFlagsUpdater ArgsUpdater,
) error

func UpateDeploymentReplicas

func UpateDeploymentReplicas(
	ctx context.Context,
	clientset kubernetes.Interface,
	namespace string,
	name string,
	replicas int32,
) error

func WaitForDeploymentPodsRunning

func WaitForDeploymentPodsRunning(ctx context.Context, client runtimeClient.WithWatch, name, namespace string)

WaitForDeploymentPodsRunning waits until all pods from a deployment are in the running state

func WaitForEventInNamespace

func WaitForEventInNamespace(ctx context.Context, client runtimeClient.WithWatch,
	namespace string, checkCondition checkEventCondition) bool

func WaitForEventInNamespaceAndPod

func WaitForEventInNamespaceAndPod(ctx context.Context, client runtimeClient.WithWatch,
	namespace string, podName string, checkCondition checkEventCondition) bool

func WaitForPodGroupsToBeReady

func WaitForPodGroupsToBeReady(
	ctx context.Context,
	kubeClientset *kubernetes.Clientset,
	runaiClientset *runaiClient.Clientset,
	controllerClient runtimeClient.WithWatch,
	namespace string,
	numPodGroups int)

Types

type ArgsUpdater

type ArgsUpdater func(args []string) []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL