Documentation ¶
Index ¶
- func GetEventRecorderFor(recorder record.EventRecorder) subcontrollers.GetEventRecorderForFunc
- func NewEnvironment(crds ...WithCRD) *envtest.Environment
- func NewFakeClient(scheme *runtime.Scheme, initObjs ...runtime.Object) client.Client
- func NewManager(env *envtest.Environment) ctrl.Manager
- type WithCRD
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEventRecorderFor ¶ added in v1.9.2
func GetEventRecorderFor(recorder record.EventRecorder) subcontrollers.GetEventRecorderForFunc
func NewEnvironment ¶
func NewEnvironment(crds ...WithCRD) *envtest.Environment
NewEnvironment is used to create a fake manager, code inspired from pkg/manager/internal/integration/manager_test.go see https://github.com/kubernetes-sigs/controller-runtime/blob/main/pkg/manager/internal/integration/manager_test.go for more information
func NewFakeClient ¶
NewFakeClient creates a new fake Kubernetes client.
func NewManager ¶
func NewManager(env *envtest.Environment) ctrl.Manager
Types ¶
type WithCRD ¶
type WithCRD func() *apiextensionsv1.CustomResourceDefinition
func WithClusterCRD ¶
func WithClusterCRD() WithCRD
func WithWarehouseCRD ¶
func WithWarehouseCRD() WithCRD
Click to show internal directories.
Click to hide internal directories.