controller

package
v0.0.0-...-300c491 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FinalizerName is the controlplane controller finalizer.
	FinalizerName       = "networkmachinery.io/networkmonitor"
	NetworkNotification = "network-notification-"
	ContentType         = "Content-Type"
	ApplicationJSON     = "application/json"
)
View Source
const Name = "network-control-controller"

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new NetworkMonitor Controller and adds it to the Manager

func DefaultPredicates

func DefaultPredicates() []predicate.Predicate

DefaultPredicates returns the default predicates for an infrastructure reconciler.

func GenerationChangedPredicate

func GenerationChangedPredicate() predicate.Predicate

GenerationChangedPredicate is a predicate for generation changes.

Types

type AddArgs

type AddArgs struct {
	// Reconciler
	Reconciler reconcile.Reconciler
	// ControllerOptions are the controller options used for creating a controller.
	// The options.Reconciler is always overridden with a reconciler created from the
	// given actuator.
	ControllerOptions controller.Options
	// Predicates are the predicates to use.
	// If unset, GenerationChangedPredicate will be used.
	Predicates []predicate.Predicate
}

type ReconcileNetworkController

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

ReconcileMachineDeployment reconciles a MachineDeployment object.

func (*ReconcileNetworkController) InjectClient

func (r *ReconcileNetworkController) InjectClient(client client.Client) error

func (*ReconcileNetworkController) InjectStopChannel

func (r *ReconcileNetworkController) InjectStopChannel(stopCh <-chan struct{}) error

func (*ReconcileNetworkController) Reconcile

Jump to

Keyboard shortcuts

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