ratelimit

package
v0.0.0-...-d4a9768 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimitReconciler

type RateLimitReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	ReconcilePeriod time.Duration
}

RateLimitReconciler reconciles a RateLimit object

func NewRateLimitReconciler

func NewRateLimitReconciler(mgr manager.Manager) *RateLimitReconciler

func (*RateLimitReconciler) Reconcile

func (r *RateLimitReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. In this function, the RateLimit object is fetched and validated. If the object is not found, it is ignored. If validation fails, an error is returned. Otherwise, the function returns a result with a requeue period.

func (*RateLimitReconciler) SetupWithManager

func (r *RateLimitReconciler) SetupWithManager(mgr ctrl.Manager, c controllers.RateLimiterConfig) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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