controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base[KeyType comparable] struct {
	ControllerName string
	KubeClient     kubernetes.Interface
	EventRecorder  record.EventRecorder

	Queue workqueue.TypedRateLimitingInterface[KeyType]
	// contains filtered or unexported fields
}

func NewBase

func NewBase[KeyType comparable](
	controllerName string,
	scheme *runtime.Scheme,
	kubeClient kubernetes.Interface,
	cachesToSync []cache.InformerSynced,
	baseControls BaseControls[KeyType],
) (*Base[KeyType], error)

func (*Base[KeyType]) Run

func (bc *Base[KeyType]) Run(ctx context.Context, workers int)

type BaseControls

type BaseControls[KeyType comparable] struct {
	SyncFunc         SyncFunc[KeyType]
	RunExtensionFunc RunExtensionFunc
}

type RunExtensionFunc

type RunExtensionFunc func(ctx context.Context, wg *wait.Group)

type SyncFunc

type SyncFunc[KeyType comparable] func(ctx context.Context, key KeyType) error

Jump to

Keyboard shortcuts

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