Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions support/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ func WithConfig(t *testing.T, cfg *rest.Config) Test {
}
}

func WithNamespaceName(name string) Option[*corev1.Namespace] {
return ErrorOption[*corev1.Namespace](func(ns *corev1.Namespace) error {
ns.Name = name
return nil
})
}

type T struct {
*gomega.WithT
t *testing.T
Expand Down
Loading