machinelabel

package
v0.0.0-...-3f1f3ec Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MachineFencingLabelKey          = "fencegroup.rook.io/cluster"
	MachineFencingNamespaceLabelKey = "fencegroup.rook.io/clusterNamespace"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, context *controllerconfig.Context) error

Add adds a new Controller to the Manager based on machinelabel.ReconcileMachineLabel and registers the relevant watches and handlers. Read more about how Managers, Controllers, and their Watches, Handlers, Predicates, etc work here: https://godoc.org/github.com/kubernetes-sigs/controller-runtime/pkg

Types

type ReconcileMachineLabel

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

func (*ReconcileMachineLabel) Reconcile

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

Reconcile is the implementation of reconcile function for ReconcileMachineLabel which ensures that the machineLabel for the osd pods are in correct state The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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