util

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timeout            = 5 * time.Second
	TimeoutE2E         = 10 * time.Minute // E2Es require a longer timeout due to large image pull
	ConsistentDuration = time.Second
	Interval           = time.Millisecond * 250
)

Variables

View Source
var (
	IgnoreObjectMetadata = cmp.Options{
		cmpopts.IgnoreTypes(metav1.TypeMeta{}),
		cmpopts.IgnoreFields(metav1.ObjectMeta{}, "UID", "ResourceVersion", "Generation", "CreationTimestamp", "ManagedFields"),
	}
	IgnoreConditions = cmp.Options{
		cmpopts.IgnoreFields(metav1.Condition{}, "LastTransitionTime", "ObservedGeneration"),
	}
	SortJobsStatus = cmp.Options{
		cmpopts.SortSlices(func(a, b trainer.JobStatus) bool { return a.Name < b.Name }),
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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