framework

package
v0.3.0-devel Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 26 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.LocalQueue) error

func DeleteResourceFlavor

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

func DeleteRuntimeClass added in v0.2.0

func DeleteRuntimeClass(ctx context.Context, c client.Client, runtimeClass *nodev1.RuntimeClass) error

func DeleteWorkload added in v0.2.0

func DeleteWorkload(ctx context.Context, c client.Client, wl *kueue.Workload) error

func ExpectAdmittedActiveWorkloadsMetric added in v0.2.0

func ExpectAdmittedActiveWorkloadsMetric(cq *kueue.ClusterQueue, v int)

func ExpectAdmittedWorkloadsTotalMetric added in v0.2.0

func ExpectAdmittedWorkloadsTotalMetric(cq *kueue.ClusterQueue, v int)

func ExpectClusterQueueStatusMetric added in v0.2.0

func ExpectClusterQueueStatusMetric(cq *kueue.ClusterQueue, status metrics.ClusterQueueStatus)

func ExpectClusterQueueToBeDeleted added in v0.2.0

func ExpectClusterQueueToBeDeleted(ctx context.Context, k8sClient client.Client, cq *kueue.ClusterQueue, deleteCq bool)

func ExpectPendingWorkloadsMetric added in v0.2.0

func ExpectPendingWorkloadsMetric(cq *kueue.ClusterQueue, active, inadmissible int)

func ExpectResourceFlavorToBeDeleted added in v0.2.0

func ExpectResourceFlavorToBeDeleted(ctx context.Context, k8sClient client.Client, rf *kueue.ResourceFlavor, deleteRf bool)

func ExpectWorkloadToBeAdmittedAs added in v0.2.0

func ExpectWorkloadToBeAdmittedAs(ctx context.Context, k8sClient client.Client, wl *kueue.Workload, admission *kueue.Admission)

func ExpectWorkloadsToBeAdmitted

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

func ExpectWorkloadsToBeFrozen added in v0.2.0

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

func ExpectWorkloadsToBePending

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

func FinishWorkloads added in v0.2.0

func FinishWorkloads(ctx context.Context, k8sClient client.Client, workloads ...*kueue.Workload)

Types

type Framework

type Framework struct {
	CRDPath      string
	WebhookPath  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, context.Context)

Jump to

Keyboard shortcuts

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