reconciler

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// OpenshiftMonitoringNamespace is the namespace in which the OpenShift
	// monitoring components are deployed.
	OpenshiftMonitoringNamespace = "openshift-monitoring"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

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

Deleter deletes a resource and ignores NotFound errors.

func NewDeleter

func NewDeleter(r client.Object) Deleter

func (Deleter) Reconcile

func (r Deleter) Reconcile(ctx context.Context, c client.Client, scheme *runtime.Scheme) error

type Reconciler

type Reconciler interface {
	Reconcile(ctx context.Context, c client.Client, scheme *runtime.Scheme) error
}

This interface is used by the resourceManagers to reconcile the resources they watch. If any component needs special treatment in the reconcile loop, create a new type that implements this interface.

func NewCreateUpdateReconciler added in v1.3.0

func NewCreateUpdateReconciler(resource client.Object, owner metav1.Object) Reconciler

func NewOptionalUnmanagedUpdater added in v1.3.0

func NewOptionalUnmanagedUpdater(r client.Object, c metav1.Object, cond bool) Reconciler

func NewOptionalUpdater

func NewOptionalUpdater(r client.Object, c metav1.Object, cond bool) Reconciler

NewOptionalUpdater ensures that a resource is present or absent depending on the `cond` value (true: present).

type Updater

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

Updater simply updates a resource by setting a controller reference for resourceOwner and calling Patch on it.

func NewUnmanagedUpdater added in v1.3.0

func NewUnmanagedUpdater(resource client.Object, owner metav1.Object) Updater

NewUnmanagedUpdater creates an Updater that does not set a controller reference.

func NewUpdater

func NewUpdater(resource client.Object, owner metav1.Object) Updater

func (Updater) Reconcile

func (r Updater) Reconcile(ctx context.Context, c client.Client, scheme *runtime.Scheme) error

Jump to

Keyboard shortcuts

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