testutils

package
v0.0.0-...-5c43739 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperandName = "lws-controller-manager"
)

Variables

This section is empty.

Functions

func GetPodCount

func GetPodCount(ctx context.Context, clients *TestClients, namespace, labelSelector string) int

func ScaleDeployment

func ScaleDeployment(ctx context.Context, clients *TestClients, OperandName string, replicas int32)

func SetManagementState

func SetManagementState(ctx context.Context, clients *TestClients, operator *operatorv1.LeaderWorkerSetOperator, state v1.ManagementState)

func VerifyPodCount

func VerifyPodCount(ctx context.Context, clients *TestClients, namespace, labelSelector string, expected int)

Types

type TestClients

type TestClients struct {
	KubeClient        *kubernetes.Clientset
	APIExtClient      *apiextv1.ApiextensionsV1Client
	DynamicClient     dynamic.Interface
	LWSOperatorClient leaderworkersetoperatorv1clientset.LeaderWorkerSetOperatorInterface
}

func NewTestClients

func NewTestClients() *TestClients

Jump to

Keyboard shortcuts

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