Documentation ¶
Index ¶
- Constants
- Variables
- func ConditionStatus[T conditionType](conditionType T) func(any) corev1.ConditionStatus
- func Jobs(t Test, ns *corev1.Namespace, options ...Option[*metav1.ListOptions]) func(g gomega.Gomega) []batchv1.Job
- func Node(t Test, name string) func(g gomega.Gomega) *corev1.Node
- type Client
- type Option
- type T
- type Test
Constants ¶
View Source
const OutputDirEnv = "OUTPUT_DIR"
Variables ¶
View Source
var ( TimeoutShort = 1 * time.Minute TimeoutMedium = 2 * time.Minute TimeoutLong = 5 * time.Minute )
View Source
var ApplyOptions = metav1.ApplyOptions{FieldManager: "test", Force: true}
Functions ¶
func ConditionStatus ¶
func ConditionStatus[T conditionType](conditionType T) func(any) corev1.ConditionStatus
TODO: to be replaced with a generic version once common struct fields of a type set can be used. See https://github.com/golang/go/issues/48522
Types ¶
type Option ¶
type Option[T any] interface { // contains filtered or unexported methods }
func LabelSelector ¶
func LabelSelector(selector string) Option[*metav1.ListOptions]
type T ¶
func (*T) NewTestNamespace ¶
Click to show internal directories.
Click to hide internal directories.