Documentation ¶
Index ¶
- func AtLeastVersion(t *testing.T, minor int) bool
- func Eventually(t testing.TB, fn func() bool)
- func NewClient(t testing.TB) client.Client
- func NewClientWithInterceptors(t testing.TB, ict *interceptor.Funcs) client.Client
- func NewContext(t *testing.T) context.Context
- func SomewhatEventually(t testing.TB, dur time.Duration, fn func() bool)
- type ExecConn
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eventually ¶
Types ¶
type Manager ¶
type Manager struct { ctrl.Manager RestConfig *rest.Config DownstreamRestConfig *rest.Config // may or may not == RestConfig DownstreamClient client.Client // may or may not == Manager.GetClient() }
func NewManager ¶
NewManager starts one or two envtest environments depending on the env. This should work seamlessly when run locally assuming binaries have been fetched with setup-envtest. In CI the second environment is used to compatibility test against a matrix of k8s versions. This compatibility testing is tightly coupled to the github action and not expected to work locally.
Click to show internal directories.
Click to hide internal directories.