reconciler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 Merger

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

func NewMerger

func NewMerger(r client.Object) Merger

func (Merger) Reconcile

func (r Merger) 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 reconicle the resources they watch. If any component needs special treatment in the reconcile loop, create a new type that implements this interface.

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 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