testutils

package
v0.0.0-...-52f0951 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 = "jobset-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.JobSetOperator, 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
	JobSetOperatorClient jobsetoperatorv1clientset.JobSetOperatorInterface
}

func NewTestClients

func NewTestClients() *TestClients

Jump to

Keyboard shortcuts

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