Help us shape the future of Go! Take the 2026 Go Developer Survey

operatingsystemconfig

package
v1.85.5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 46 Imported by: 1

Documentation

Index

Constants

View Source
const ControllerName = "operatingsystemconfig"

ControllerName is the name of this controller.

Variables

View Source
var RandomDurationWithMetaDuration = utils.RandomDurationWithMetaDuration

RandomDurationWithMetaDuration is an alias for `utils.RandomDurationWithMetaDuration`. Exposed for unit tests.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client        client.Client
	Config        config.OperatingSystemConfigControllerConfig
	Recorder      record.EventRecorder
	DBus          dbus.DBus
	FS            afero.Afero
	Extractor     registry.Extractor
	CancelContext context.CancelFunc
	HostName      string
	// contains filtered or unexported fields
}

Reconciler decodes the OperatingSystemConfig resources from secrets and applies the systemd units and files to the node.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) EnqueueWithJitterDelay

func (r *Reconciler) EnqueueWithJitterDelay(log logr.Logger) handler.EventHandler

EnqueueWithJitterDelay returns handler.Funcs which enqueues the object with a random jitter duration for 'update' events. 'Create' events are enqueued immediately.

func (*Reconciler) Reconcile

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

Reconcile decodes the OperatingSystemConfig resources from secrets and applies the systemd units and files to the node.

func (*Reconciler) SecretPredicate

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

SecretPredicate returns the predicate for Secret events.

Jump to

Keyboard shortcuts

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