controllers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package controllers contains code that implements the reconcile pattern, where a specific resource kind is monitored and when a relevant change is detected, it is processed and the appropriate actions are taken to bring the current state to the desired one.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidManager           = errors.New("invalid manager provided")
	ErrorInvalidControllerOptions = errors.New("invalid controller options provided")
)

Functions

func NewManager

func NewManager(kubeconfigPath string) (manager.Manager, error)

func NewNamespaceController

func NewNamespaceController(mgr manager.Manager, opts *ControllerOptions, log zerolog.Logger) (controller.Controller, error)

func NewServiceController

func NewServiceController(mgr manager.Manager, opts *ControllerOptions, log zerolog.Logger) (controller.Controller, error)

Types

type ControllerOptions

type ControllerOptions struct {
	WatchNamespacesByDefault bool
	ServiceAnnotations       []string
	EventsChan               chan *serviceregistry.Event
}

Jump to

Keyboard shortcuts

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