fake

package
v1.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func NewFakeClient(scheme *runtime.Scheme, initObjs ...runtime.Object) client.Client

NewFakeClient creates a new fake Kubernetes client.

func NewManager

func NewManager(env *envtest.Environment) ctrl.Manager

Types

type WithCRD

func WithClusterCRD

func WithClusterCRD() WithCRD

func WithWarehouseCRD

func WithWarehouseCRD() WithCRD

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL