Documentation ¶
Overview ¶
Package genericreconciler contains generic reconciler loop
Index ¶
- Variables
- func HandleError(info string, name string, e error) error
- type KVmap
- type Reconciler
- func (gr *Reconciler) FinalizeComponent(crname string, c component.Component, status interface{}, ...) error
- func (gr *Reconciler) Init()
- func (gr *Reconciler) ObserveAndMutate(crname string, c component.Component, status interface{}, mutate bool, ...) (*resource.ObjectBag, *resource.ObjectBag, error)
- func (gr *Reconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (gr *Reconciler) ReconcileCR(namespacedname types.NamespacedName, handle cr.Handle) error
- func (gr *Reconciler) ReconcileComponent(crname string, c component.Component, status interface{}, ...) error
- type ReconcilerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var AddToSchemes runtime.SchemeBuilder
AddToSchemes for adding Application to scheme
Functions ¶
Types ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.