Documentation ¶
Index ¶
- func UpdateReplicaSetWithRetries(c clientset.Interface, namespace, name string, ...) (*appsv1.ReplicaSet, error)
- func WaitForReadyReplicaSet(ctx context.Context, c clientset.Interface, ns, name string) error
- func WaitForReplicaSetTargetAvailableReplicas(ctx context.Context, c clientset.Interface, replicaSet *appsv1.ReplicaSet, ...) error
- func WaitForReplicaSetTargetAvailableReplicasWithTimeout(ctx context.Context, c clientset.Interface, replicaSet *appsv1.ReplicaSet, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateReplicaSetWithRetries ¶
func UpdateReplicaSetWithRetries(c clientset.Interface, namespace, name string, applyUpdate testutils.UpdateReplicaSetFunc) (*appsv1.ReplicaSet, error)
UpdateReplicaSetWithRetries updates replicaset template with retries.
func WaitForReadyReplicaSet ¶
WaitForReadyReplicaSet waits until the replicaset has all of its replicas ready.
func WaitForReplicaSetTargetAvailableReplicas ¶
func WaitForReplicaSetTargetAvailableReplicas(ctx context.Context, c clientset.Interface, replicaSet *appsv1.ReplicaSet, targetReplicaNum int32) error
WaitForReplicaSetTargetAvailableReplicas waits for .status.availableReplicas of a RS to equal targetReplicaNum
func WaitForReplicaSetTargetAvailableReplicasWithTimeout ¶ added in v1.18.0
func WaitForReplicaSetTargetAvailableReplicasWithTimeout(ctx context.Context, c clientset.Interface, replicaSet *appsv1.ReplicaSet, targetReplicaNum int32, timeout time.Duration) error
WaitForReplicaSetTargetAvailableReplicasWithTimeout waits for .status.availableReplicas of a RS to equal targetReplicaNum with given timeout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.