resolver

package
v1.18.2 Latest Latest
Warning

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

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

Documentation

Overview

Package resolver implements the Crossplane Package Lock controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForName added in v1.18.0

func ForName(name string, fns ...FilterFn) handler.MapFunc

ForName enqueues a request for the named object. It only enqueues a request if all supplied filter functions return false.

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles the Lock.

Types

type FilterFn added in v1.18.0

type FilterFn func(o client.Object) bool

A FilterFn returns true if the supplied object should be filtered.

func HasPullSecret added in v1.18.0

func HasPullSecret() FilterFn

HasPullSecret returns a FilterFn that filters any object that either isn't an ImageConfig, or is an ImageConfig that doesn't reference a pull secret.

type Reconciler

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

Reconciler reconciles packages.

func NewReconciler

func NewReconciler(mgr manager.Manager, opts ...ReconcilerOption) *Reconciler

NewReconciler creates a new package revision reconciler.

func (*Reconciler) Reconcile

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

Reconcile package revision.

type ReconcilerOption

type ReconcilerOption func(*Reconciler)

ReconcilerOption is used to configure the Reconciler.

func WithConfigStore added in v1.16.4

func WithConfigStore(c xpkg.ConfigStore) ReconcilerOption

WithConfigStore specifies how the Reconciler should access image config store.

func WithDefaultRegistry added in v1.15.0

func WithDefaultRegistry(registry string) ReconcilerOption

WithDefaultRegistry sets the default registry to use.

func WithFetcher

func WithFetcher(f xpkg.Fetcher) ReconcilerOption

WithFetcher specifies how the Reconciler should fetch package tags.

func WithFinalizer

func WithFinalizer(f resource.Finalizer) ReconcilerOption

WithFinalizer specifies how the Reconciler should finalize package revisions.

func WithLogger

func WithLogger(log logging.Logger) ReconcilerOption

WithLogger specifies how the Reconciler should log messages.

func WithNewDagFn

func WithNewDagFn(f internaldag.NewDAGFn) ReconcilerOption

WithNewDagFn specifies how the Reconciler should build its dependency graph.

func WithUpgradesEnabled added in v1.18.0

func WithUpgradesEnabled() ReconcilerOption

WithUpgradesEnabled sets whether upgrades are enabled or not.

Jump to

Keyboard shortcuts

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