Documentation
¶
Overview ¶
Package resolver implements the Crossplane Package Lock controller.
Index ¶
- func ForName(name string, fns ...FilterFn) handler.MapFunc
- func Setup(mgr ctrl.Manager, o controller.Options) error
- type FilterFn
- type Reconciler
- type ReconcilerOption
- func WithConfigStore(c xpkg.ConfigStore) ReconcilerOption
- func WithDefaultRegistry(registry string) ReconcilerOption
- func WithFetcher(f xpkg.Fetcher) ReconcilerOption
- func WithFinalizer(f resource.Finalizer) ReconcilerOption
- func WithLogger(log logging.Logger) ReconcilerOption
- func WithNewDagFn(f internaldag.NewDAGFn) ReconcilerOption
- func WithUpgradesEnabled() ReconcilerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterFn ¶ added in v1.18.0
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.
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.