ha

package
v0.0.0-...-25f6002 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 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.Set[string], n int) (sets.Set[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