reconciler

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	// contains filtered or unexported fields
}

func (*Reconciler) InjectClient

func (r *Reconciler) InjectClient(c client.Client) error

func (*Reconciler) IsObserver added in v0.2.0

func (r *Reconciler) IsObserver() bool

func (*Reconciler) Observe added in v0.2.0

func (r *Reconciler) Observe(req reconcile.Request) (reconcile.Result, error)

func (*Reconciler) Reconcile

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

type State

type State struct {
	Object     *unstructured.Unstructured              `json:"object"`
	Dependents map[string][]*unstructured.Unstructured `json:"dependents"`
	References map[string][]*unstructured.Unstructured `json:"references"`
	Events     []StateEvent                            `json:"events"`
}

func NewState

func NewState(object *unstructured.Unstructured, deps, refs map[string][]*unstructured.Unstructured) *State

func (*State) Diff

func (*State) SetOwnerReference added in v0.4.0

func (s *State) SetOwnerReference(ownerRef metav1.OwnerReference, c *config.ControllerConfig)

func (*State) Validate added in v0.4.0

func (s *State) Validate(new *State, c *config.ControllerConfig) error

type StateEvent

type StateEvent struct {
	Type    string `json:"type"`
	Reason  string `json:"reason"`
	Message string `json:"message"`
}

func (*StateEvent) Empty

func (e *StateEvent) Empty() bool

Jump to

Keyboard shortcuts

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