Documentation ¶
Overview ¶
Package manager implements the Crossplane Package controllers.
Index ¶
- func SetupConfiguration(mgr ctrl.Manager, o controller.Options) error
- func SetupProvider(mgr ctrl.Manager, o controller.Options) error
- type NopRevisioner
- type PackageRevisioner
- type PackageRevisionerOption
- type Reconciler
- type ReconcilerOption
- func WithESSTLSSecretName(s *string) ReconcilerOption
- func WithLogger(log logging.Logger) ReconcilerOption
- func WithNewPackageFn(f func() v1.Package) ReconcilerOption
- func WithNewPackageRevisionFn(f func() v1.PackageRevision) ReconcilerOption
- func WithNewPackageRevisionListFn(f func() v1.PackageRevisionList) ReconcilerOption
- func WithRecorder(er event.Recorder) ReconcilerOption
- func WithRevisioner(d Revisioner) ReconcilerOption
- func WithWebhookTLSSecretName(n string) ReconcilerOption
- type Revisioner
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.
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.
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.
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.