policy

package
v0.3.24 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package policy implements API Server policy controllers.

Index

Constants

View Source
const (
	XDSPort = 18000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimitReconciler

type RateLimitReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

RateLimitReconciler reconciles a Proxy object.

func NewRateLimitReconciler

func NewRateLimitReconciler(
	ctx context.Context,
	c client.Client,
	orgID uuid.UUID,
) *RateLimitReconciler

NewRateLimitReconciler returns a new reconcile.Reconciler for RateLimit objects. xDS server is configured based on the RateLimit objects and snapshots are delivered to connecting RateLimit services.

func (*RateLimitReconciler) Reconcile

func (r *RateLimitReconciler) Reconcile(ctx context.Context, request reconcile.Request) (ctrl.Result, error)

Reconcile implements reconcile.Reconciler.

func (*RateLimitReconciler) ServeXDS

func (r *RateLimitReconciler) ServeXDS() error

ServeXDS starts the xDS server.

func (*RateLimitReconciler) SetupWithManager

func (r *RateLimitReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the reconciler with the mgr.

Jump to

Keyboard shortcuts

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