node

package
v1.88.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "node"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client   client.Client
	Recorder record.EventRecorder
	DBus     dbus.DBus
}

Reconciler checks for node annotation changes and restarts the specified systemd services.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, nodePredicate predicate.Predicate) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) NodePredicate

func (r *Reconciler) NodePredicate() predicate.Predicate

NodePredicate returns 'true' when the annotation describing which systemd services should be restarted gets set or changed. When it's removed, 'false' is returned.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile checks for node annotation changes and restarts the specified systemd services.

Jump to

Keyboard shortcuts

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