controller

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactReconciliationConfigurationChangedPredicate added in v0.12.0

type ArtifactReconciliationConfigurationChangedPredicate struct {
	predicate.Funcs
}

ArtifactReconciliationConfigurationChangedPredicate contains the logic to determine if the annotations of a FluxInstance object relevant to the artifact reconciliation have changed.

func (ArtifactReconciliationConfigurationChangedPredicate) Update added in v0.12.0

type EntitlementReconciler added in v0.6.0

type EntitlementReconciler struct {
	client.Client
	kuberecorder.EventRecorder

	EntitlementClient entitlement.Client
	Scheme            *runtime.Scheme
	StatusPoller      *polling.StatusPoller
	StatusManager     string
	WatchNamespace    string
}

EntitlementReconciler reconciles entitlements.

func (*EntitlementReconciler) DeleteEntitlementSecret added in v0.6.0

func (r *EntitlementReconciler) DeleteEntitlementSecret(ctx context.Context, secret *corev1.Secret) error

DeleteEntitlementSecret deletes the entitlement secret.

func (*EntitlementReconciler) GetEntitlementSecret added in v0.6.0

func (r *EntitlementReconciler) GetEntitlementSecret(ctx context.Context) (*corev1.Secret, error)

GetEntitlementSecret returns the entitlement secret. if the secret doesn't exist, it gets initialized.

func (*EntitlementReconciler) InitEntitlementSecret added in v0.6.0

func (r *EntitlementReconciler) InitEntitlementSecret(ctx context.Context) (*corev1.Secret, error)

InitEntitlementSecret creates the entitlement secret if it doesn't exist and sets the entitlement vendor if it's missing or different.

func (*EntitlementReconciler) Reconcile added in v0.6.0

func (r *EntitlementReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*EntitlementReconciler) SetupWithManager added in v0.6.0

func (r *EntitlementReconciler) SetupWithManager(mgr ctrl.Manager, opts EntitlementReconcilerOptions) error

SetupWithManager sets up the controller with the Manager and initializes the entitlement secret in the watch namespace.

func (*EntitlementReconciler) UpdateEntitlementSecret added in v0.6.0

func (r *EntitlementReconciler) UpdateEntitlementSecret(ctx context.Context, token string) error

UpdateEntitlementSecret updates the token in the entitlement secret.

type EntitlementReconcilerOptions added in v0.6.0

type EntitlementReconcilerOptions struct {
	RateLimiter workqueue.TypedRateLimiter[reconcile.Request]
}

EntitlementReconcilerOptions contains options for the reconciler.

type FluxInstanceArtifactReconciler added in v0.12.0

type FluxInstanceArtifactReconciler struct {
	client.Client
	kuberecorder.EventRecorder

	StatusManager string
}

FluxInstanceArtifactReconciler reconciles the distribution artifact of a FluxInstance object

func (*FluxInstanceArtifactReconciler) Reconcile added in v0.12.0

func (r *FluxInstanceArtifactReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*FluxInstanceArtifactReconciler) SetupWithManager added in v0.12.0

SetupWithManager sets up the controller with the Manager.

type FluxInstanceArtifactReconcilerOptions added in v0.12.0

type FluxInstanceArtifactReconcilerOptions struct {
	RateLimiter workqueue.TypedRateLimiter[reconcile.Request]
}

FluxInstanceArtifactReconcilerOptions contains options for the reconciler.

type FluxInstanceReconciler

type FluxInstanceReconciler struct {
	client.Client
	kuberecorder.EventRecorder

	Scheme        *runtime.Scheme
	StatusPoller  *polling.StatusPoller
	StatusManager string
	StoragePath   string
}

FluxInstanceReconciler reconciles a FluxInstance object

func (*FluxInstanceReconciler) Reconcile

func (r *FluxInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*FluxInstanceReconciler) SetupWithManager

SetupWithManager sets up the controller with the Manager.

type FluxInstanceReconcilerOptions

type FluxInstanceReconcilerOptions struct {
	RateLimiter workqueue.TypedRateLimiter[reconcile.Request]
}

FluxInstanceReconcilerOptions contains options for the reconciler.

type FluxReportReconciler added in v0.6.0

type FluxReportReconciler struct {
	client.Client
	kuberecorder.EventRecorder

	Scheme         *runtime.Scheme
	StatusManager  string
	WatchNamespace string
}

FluxReportReconciler reconciles a FluxReport object

func (*FluxReportReconciler) Reconcile added in v0.6.0

func (r *FluxReportReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile computes the report of the Flux instance.

func (*FluxReportReconciler) SetupWithManager added in v0.6.0

func (r *FluxReportReconciler) SetupWithManager(mgr ctrl.Manager, opts FluxReportReconcilerOptions) error

SetupWithManager sets up the controller with the Manager.

type FluxReportReconcilerOptions added in v0.6.0

type FluxReportReconcilerOptions struct {
	RateLimiter workqueue.TypedRateLimiter[reconcile.Request]
}

FluxReportReconcilerOptions contains options for the reconciler.

Jump to

Keyboard shortcuts

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