config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupConfig

func SetupConfig(mgr ctrl.Manager, l logging.Logger) error

SetupConfig adds a controller that reconciles ProviderConfigs by accounting for their current usage.

func SetupToken

func SetupToken(mgr ctrl.Manager, l logging.Logger) error

SetupToken adds a controller that reconciles ProviderConfigs by accounting for their current usage.

Types

type TokenReconciler

type TokenReconciler struct {
	// contains filtered or unexported fields
}

A TokenReconciler reconciles managed resources by creating and managing the lifecycle of an external resource, i.e. a resource in an external system such as a cloud provider API. Each controller must watch the managed resource kind for which it is responsible.

func NewTokenReconciler

NewTokenReconciler returns a Reconciler of ProviderConfigs.

func (*TokenReconciler) Reconcile

func (r *TokenReconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)

Reconcile a ProviderConfig by accounting for the managed resources that are using it, and ensuring it cannot be deleted until it is no longer in use.

type TokenReconcilerOption

type TokenReconcilerOption func(*TokenReconciler)

A TokenReconcilerOption configures a Reconciler.

func WithLogger

func WithLogger(l logging.Logger) TokenReconcilerOption

WithLogger specifies how the Reconciler should log messages.

func WithRecorder

func WithRecorder(er event.Recorder) TokenReconcilerOption

WithRecorder specifies how the Reconciler should record events.

Jump to

Keyboard shortcuts

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