ha

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 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 kubernetes.Interface, 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 deprecated

func WaitForNewLeader(ctx context.Context, client kubernetes.Interface, lease, namespace, previousLeader string) (string, error)

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

Deprecated: Use WaitForNewLeaders.

func WaitForNewLeaders

func WaitForNewLeaders(ctx context.Context, t *testing.T, client kubernetes.Interface, 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