framework

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timeout            = time.Second * 10
	ConsistentDuration = time.Second * 3
	Interval           = time.Millisecond * 250
)

Variables

This section is empty.

Functions

func DeleteClusterQueue

func DeleteClusterQueue(ctx context.Context, c client.Client, cq *kueue.ClusterQueue) error

func DeleteNamespace

func DeleteNamespace(ctx context.Context, c client.Client, ns *corev1.Namespace) error

DeleteNamespace deletes all objects the tests typically create in the namespace.

func DeleteQueue

func DeleteQueue(ctx context.Context, c client.Client, q *kueue.Queue) error

func DeleteResourceFlavor

func DeleteResourceFlavor(ctx context.Context, c client.Client, rf *kueue.ResourceFlavor) error

func ExpectWorkloadsToBeAdmitted

func ExpectWorkloadsToBeAdmitted(ctx context.Context, k8sClient client.Client, cqName string, wls ...*kueue.Workload)

func ExpectWorkloadsToBePending

func ExpectWorkloadsToBePending(ctx context.Context, k8sClient client.Client, wls ...*kueue.Workload)

func UpdateWorkloadStatus

func UpdateWorkloadStatus(ctx context.Context, k8sClient client.Client, wl *kueue.Workload, update func(*kueue.Workload))

Types

type Framework

type Framework struct {
	CRDPath      string
	ManagerSetup ManagerSetup
	// contains filtered or unexported fields
}

func (*Framework) Setup

func (f *Framework) Setup() (context.Context, *rest.Config, client.Client)

func (*Framework) Teardown

func (f *Framework) Teardown()

type ManagerSetup

type ManagerSetup func(manager.Manager)

Jump to

Keyboard shortcuts

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