controller

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 ratelimiter.RateLimiter
}

EntitlementReconcilerOptions 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 ratelimiter.RateLimiter
}

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 ratelimiter.RateLimiter
}

FluxReportReconcilerOptions contains options for the reconciler.

Jump to

Keyboard shortcuts

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