Documentation ¶
Index ¶
- func NewReplicaSet(name, namespace string, replicas int32, podLabels map[string]string, ...) *appsv1.ReplicaSet
- func RunReplicaSet(config testutils.ReplicaSetConfig) error
- func UpdateReplicaSetWithRetries(c clientset.Interface, namespace, name string, ...) (*appsv1.ReplicaSet, error)
- func WaitForReadyReplicaSet(c clientset.Interface, ns, name string) error
- func WaitForReplicaSetDesiredReplicas(rsClient appsclient.ReplicaSetsGetter, replicaSet *appsv1.ReplicaSet) error
- func WaitForReplicaSetTargetAvailableReplicas(c clientset.Interface, replicaSet *appsv1.ReplicaSet, targetReplicaNum int32) error
- func WaitForReplicaSetTargetSpecReplicas(c clientset.Interface, replicaSet *appsv1.ReplicaSet, targetReplicaNum int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReplicaSet ¶
func NewReplicaSet(name, namespace string, replicas int32, podLabels map[string]string, imageName, image string) *appsv1.ReplicaSet
NewReplicaSet returns a new ReplicaSet.
func RunReplicaSet ¶
func RunReplicaSet(config testutils.ReplicaSetConfig) error
RunReplicaSet launches (and verifies correctness) of a replicaset.
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 WaitForReplicaSetDesiredReplicas ¶
func WaitForReplicaSetDesiredReplicas(rsClient appsclient.ReplicaSetsGetter, replicaSet *appsv1.ReplicaSet) error
WaitForReplicaSetDesiredReplicas waits until the replicaset has desired number of replicas.
func WaitForReplicaSetTargetAvailableReplicas ¶
func WaitForReplicaSetTargetAvailableReplicas(c clientset.Interface, replicaSet *appsv1.ReplicaSet, targetReplicaNum int32) error
WaitForReplicaSetTargetAvailableReplicas waits for .status.availableReplicas of a RS to equal targetReplicaNum
func WaitForReplicaSetTargetSpecReplicas ¶
func WaitForReplicaSetTargetSpecReplicas(c clientset.Interface, replicaSet *appsv1.ReplicaSet, targetReplicaNum int32) error
WaitForReplicaSetTargetSpecReplicas waits for .spec.replicas of a RS to equal targetReplicaNum
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.