ha

package
v0.0.0-...-584933f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLeaders

func GetLeaders(ctx context.Context, t *testing.T, client *test.KubeClient, deploymentName, namespace string) ([]string, error)

GetLeaders collects all of the leader pods from the specified deployment. GetLeaders will return duplicate pods by design.

func WaitForNewLeader

func WaitForNewLeader(ctx context.Context, client *test.KubeClient, lease, namespace, previousLeader string) (string, error)

DEPRECATED WaitForNewLeader waits until the holder of the given lease is different from the previousLeader.

func WaitForNewLeaders

func WaitForNewLeaders(ctx context.Context, t *testing.T, client *test.KubeClient, deploymentName, namespace string, previousLeaders sets.String, n int) (sets.String, error)

WaitForNewLeaders waits until the collection of current leaders consists of "n" leaders which do not include the specified prior leaders.

Types

This section is empty.

Jump to

Keyboard shortcuts

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