registration

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandlerFactory

type EventHandlerFactory func(client client.Client, log logr.Logger) handler.EventHandler

type Index

type Index struct {
	Key  string
	Func func(rawObj client.Object) []string
}

Index describes an index registration. See controller-runtime mgr.GetFieldIndexer().IndexField() for more details.

type StorageType

type StorageType struct {
	// Obj is the object whose Kind should be registered as the storage type.
	Obj client.Object
	// Indexes are additional indexes which must be set up in client-go for this type. These indexes will
	// be used by the reconciliation loop for this resource.
	Indexes []Index
	// Watches are additional event sources that trigger the reconciliation process. This is commonly
	// used when multiple resources in Kubernetes combine to work together. For example, when a
	// database takes a Kubernetes secret as an input, that secret must also be watched in addition
	// to the database itself, so that changes to the secret are correctly propagated.
	Watches []Watch
	// Reconciler is the reconciler instance for resources of this type.
	Reconciler genruntime.Reconciler
	// Predicate determines which events trigger reconciliation for this type
	Predicate predicate.Predicate
	// Name is the friendly name of this storage type
	Name string
}

StorageType describes a storage type which will be reconciled.

func NewStorageType

func NewStorageType(obj client.Object) *StorageType

NewStorageType makes a new storage type for the specified object

type Watch

type Watch struct {
	Type             client.Object
	MakeEventHandler EventHandlerFactory
}

Watch describes a watch registration. See controller-runtime builder.Watches() for more details.

Jump to

Keyboard shortcuts

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