Documentation
¶
Index ¶
- Constants
- func ExpectResourceCreated(c client.Client, obj runtime.Object)
- func ExpectResourceDestroyed(c client.Client, obj runtime.Object)
- func GetResource(c client.Client, obj runtime.Object) error
- func RunOperator(mgr manager.Manager, stopChan chan struct{}) (doneChan chan struct{})
- type NonZeroDefaultOption
- type ValueDefaulter
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ExpectResourceCreated ¶
ExpectResourceCreated asserts that the given object is created, and populates the provided runtime.Object with the current state of the object in the cluster.
func ExpectResourceDestroyed ¶
ExpectResourceDestroyed asserts that the given object no longer exists.
func GetResource ¶
GetResource gets the requested object, populating obj with its contents.
func RunOperator ¶
RunOperator runs the provided operator manager in a separate goroutine so that the test code isn't blocked. The passed in stop channel can be closed in order to stop the execution of the operator. The channel returned will be closed when the mgr stops.
Types ¶
type NonZeroDefaultOption ¶ added in v1.12.0
type NonZeroDefaultOption func(defaulter *nonZeroValueDefaulter)
func WithInterfaceImplementations ¶ added in v1.12.0
func WithInterfaceImplementations(ifaceImpls map[string]interface{}) NonZeroDefaultOption
type ValueDefaulter ¶ added in v1.12.0
type ValueDefaulter interface {
SetDefault(interface{}) error
}
func NewNonZeroStructDefaulter ¶ added in v1.12.0
func NewNonZeroStructDefaulter(options ...NonZeroDefaultOption) ValueDefaulter
NewNonZeroStructDefaulter creates an implementation of the ValueDefaulter that
Click to show internal directories.
Click to hide internal directories.