genericreconciler

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package genericreconciler contains generic reconciler loop

Index

Constants

This section is empty.

Variables

View Source
var AddToSchemes runtime.SchemeBuilder

AddToSchemes for adding Application to scheme

Functions

func HandleError

func HandleError(info string, name string, e error) error

HandleError common error handling routine

Types

type KVmap

type KVmap map[string]string

KVmap is a map[string]string

func (KVmap) Merge

func (out KVmap) Merge(kvmaps ...KVmap)

Merge is used to merge multiple maps into the target map

type Reconciler

type Reconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Handle  cr.Handle
	Manager manager.Manager
}

Reconciler defines fields needed for all airflow controllers +k8s:deepcopy-gen=false

func (*Reconciler) FinalizeComponent

func (gr *Reconciler) FinalizeComponent(crname string, c component.Component, status interface{}, aggregated *resource.ObjectBag) error

FinalizeComponent is a function that finalizes component

func (*Reconciler) Init

func (gr *Reconciler) Init()

Init sets up Reconciler

func (*Reconciler) ObserveAndMutate

func (gr *Reconciler) ObserveAndMutate(crname string, c component.Component, status interface{}, mutate bool, aggregated *resource.ObjectBag) (*resource.ObjectBag, *resource.ObjectBag, error)

ObserveAndMutate is a function that is called to observe and mutate expected resources

func (*Reconciler) Reconcile

func (gr *Reconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile expected by kubebuilder

func (*Reconciler) ReconcileCR

func (gr *Reconciler) ReconcileCR(namespacedname types.NamespacedName, handle cr.Handle) error

ReconcileCR is a generic function that reconciles expected and observed resources

func (*Reconciler) ReconcileComponent

func (gr *Reconciler) ReconcileComponent(crname string, c component.Component, status interface{}, aggregated *resource.ObjectBag) error

ReconcileComponent is a generic function that reconciles expected and observed resources

type ReconcilerConfig

type ReconcilerConfig struct {
}

ReconcilerConfig config defines reconciler parameters +k8s:deepcopy-gen=false

Jump to

Keyboard shortcuts

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