clusterstate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ClusterState controller and adds it to the manager with default RBAC.

func AddToManager

func AddToManager(mgr manager.Manager, r reconcile.Reconciler) error

AddToManager adds a new Controller to mgr with r as the reconcile.Reconciler

func NewReconciler

func NewReconciler(mgr manager.Manager) reconcile.Reconciler

NewReconciler returns a new reconcile.Reconciler

Types

type ReconcileClusterState

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

ReconcileClusterState is the reconciler for ClusterState. It will sync on ClusterDeployment resources and ensure that a ClusterState exists and is updated when appropriate.

func (*ReconcileClusterState) Reconcile

func (r *ReconcileClusterState) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile ensures that a given ClusterState resource exists and reflects the state of cluster operators from its target cluster

Jump to

Keyboard shortcuts

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