uwcontroller

package
v0.0.0-...-4d19ac6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 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 OptConfig

type OptConfig func(*Options)

func WithControllerName

func WithControllerName(name string) OptConfig

WithControllerName set the controller name.

func WithJitterPeriod

func WithJitterPeriod(t time.Duration) OptConfig

WithJitterPeriod set JitterPeriod.

func WithMaxConcurrentReconciles

func WithMaxConcurrentReconciles(n int) OptConfig

WithMaxConcurrentReconciles set MaxConcurrentReconciles if valid.

func WithOptions

func WithOptions(o *Options) OptConfig

WithOptions set options.

func WithReconciler

func WithReconciler(rc reconciler.UWReconciler) OptConfig

WithReconciler set the reconciler.

func WithWorkQueue

func WithWorkQueue(q workqueue.RateLimitingInterface) OptConfig

WithWorkQueue set the workqueue for mccontroller.

type Options

type Options struct {
	JitterPeriod time.Duration
	// MaxConcurrentReconciles is the number of concurrent control loops.
	MaxConcurrentReconciles int

	Reconciler reconciler.UWReconciler
	// Queue can be used to override the default queue.
	Queue workqueue.RateLimitingInterface
	// contains filtered or unexported fields
}

Options are the arguments for creating a new UpwardController.

type UpwardController

type UpwardController struct {
	Options
	// contains filtered or unexported fields
}

func NewUWController

func NewUWController(objectType client.Object, rc reconciler.UWReconciler, opts ...OptConfig) (*UpwardController, error)

func (*UpwardController) AddToQueue

func (c *UpwardController) AddToQueue(key string)

func (*UpwardController) Start

func (c *UpwardController) Start(stop <-chan struct{}) error

Jump to

Keyboard shortcuts

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