crds

package
v2.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	SetupWithManager(mgr ctrl.Manager) error
}

type DynamicCRDController

type DynamicCRDController struct {
	Log              logr.Logger
	Manager          ctrl.Manager
	CacheSyncTimeout time.Duration
	Controller       Controller
	RequiredCRDs     []schema.GroupVersionResource
	// contains filtered or unexported fields
}

DynamicCRDController ensures that RequiredCRDs are installed in the cluster and only then sets up its Controller that depends on them. In case the CRDs are not installed at start-up time, DynamicCRDController will set up a watch for CustomResourceDefinition and will dynamically set up its Controller once it detects that all RequiredCRDs are already in place.

func (*DynamicCRDController) Reconcile

func (r *DynamicCRDController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*DynamicCRDController) SetupWithManager

func (r *DynamicCRDController) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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