manager

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package manager implements the Crossplane Package controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupConfiguration

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

SetupConfiguration adds a controller that reconciles Configurations.

func SetupProvider

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

SetupProvider adds a controller that reconciles Providers.

Types

type NopRevisioner

type NopRevisioner struct{}

NopRevisioner returns an empty revision name.

func NewNopRevisioner

func NewNopRevisioner() *NopRevisioner

NewNopRevisioner creates a NopRevisioner.

func (*NopRevisioner) Revision

func (d *NopRevisioner) Revision(context.Context, v1.Package) (string, error)

Revision returns an empty revision name and no error.

type PackageRevisioner

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

PackageRevisioner extracts a revision name for a package source.

func NewPackageRevisioner

func NewPackageRevisioner(fetcher xpkg.Fetcher, opts ...PackageRevisionerOption) *PackageRevisioner

NewPackageRevisioner returns a new PackageRevisioner.

func (*PackageRevisioner) Revision

func (r *PackageRevisioner) Revision(ctx context.Context, p v1.Package) (string, error)

Revision extracts a revision name for a package source.

type PackageRevisionerOption added in v1.4.0

type PackageRevisionerOption func(r *PackageRevisioner)

A PackageRevisionerOption sets configuration for a package revisioner.

func WithDefaultRegistry added in v1.4.0

func WithDefaultRegistry(registry string) PackageRevisionerOption

WithDefaultRegistry sets the default registry that a package revisioner will use.

type Reconciler

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

Reconciler reconciles packages.

func NewReconciler

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

NewReconciler creates a new package reconciler.

func (*Reconciler) Reconcile

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

Reconcile package.

type ReconcilerOption

type ReconcilerOption func(*Reconciler)

ReconcilerOption is used to configure the Reconciler.

func WithESSTLSSecretName added in v1.12.0

func WithESSTLSSecretName(s *string) ReconcilerOption

WithESSTLSSecretName configures the name of the TLS certificate secret that Reconciler will add to PackageRevisions it creates.

func WithLogger

func WithLogger(log logging.Logger) ReconcilerOption

WithLogger specifies how the Reconciler should log messages.

func WithNewPackageFn

func WithNewPackageFn(f func() v1.Package) ReconcilerOption

WithNewPackageFn determines the type of package being reconciled.

func WithNewPackageRevisionFn

func WithNewPackageRevisionFn(f func() v1.PackageRevision) ReconcilerOption

WithNewPackageRevisionFn determines the type of package being reconciled.

func WithNewPackageRevisionListFn

func WithNewPackageRevisionListFn(f func() v1.PackageRevisionList) ReconcilerOption

WithNewPackageRevisionListFn determines the type of package being reconciled.

func WithRecorder

func WithRecorder(er event.Recorder) ReconcilerOption

WithRecorder specifies how the Reconciler should record Kubernetes events.

func WithRevisioner

func WithRevisioner(d Revisioner) ReconcilerOption

WithRevisioner specifies how the Reconciler should acquire a package image's revision name.

func WithWebhookTLSSecretName added in v1.7.0

func WithWebhookTLSSecretName(n string) ReconcilerOption

WithWebhookTLSSecretName configures the name of the webhook TLS Secret that Reconciler will add to PackageRevisions it creates.

type Revisioner

type Revisioner interface {
	Revision(context.Context, v1.Package) (string, error)
}

Revisioner extracts a revision name for a package source.

Jump to

Keyboard shortcuts

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