controllers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const APAvailableConditionType string = "Available"
View Source
const (
	RLPAvailableConditionType string = "Available"
)
View Source
const (
	ReadyConditionType string = "Ready"
)

Variables

View Source
var KuadrantExtAuthProviderName = env.GetString("AUTH_PROVIDER", "kuadrant-authorization")

Functions

This section is empty.

Types

type AuthPolicyReconciler added in v0.2.0

type AuthPolicyReconciler struct {
	reconcilers.TargetRefReconciler
}

AuthPolicyReconciler reconciles a AuthPolicy object

func (*AuthPolicyReconciler) Reconcile added in v0.2.0

func (r *AuthPolicyReconciler) Reconcile(eventCtx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AuthPolicyReconciler) SetupWithManager added in v0.2.0

func (r *AuthPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GatewayEventMapper added in v0.2.0

type GatewayEventMapper struct {
	Logger logr.Logger
}

GatewayEventMapper is an EventHandler that maps Gateway object events to policy events.

func (*GatewayEventMapper) MapToAuthPolicy added in v0.3.0

func (m *GatewayEventMapper) MapToAuthPolicy(_ context.Context, obj client.Object) []reconcile.Request

func (*GatewayEventMapper) MapToRateLimitPolicy added in v0.2.0

func (m *GatewayEventMapper) MapToRateLimitPolicy(_ context.Context, obj client.Object) []reconcile.Request

type GatewayKuadrantReconciler added in v0.4.0

type GatewayKuadrantReconciler struct {
	*reconcilers.BaseReconciler
}

GatewayKuadrantReconciler reconciles Gateway object with kuadrant metadata

func (*GatewayKuadrantReconciler) Reconcile added in v0.4.0

func (r *GatewayKuadrantReconciler) Reconcile(eventCtx context.Context, req ctrl.Request) (ctrl.Result, error)

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*GatewayKuadrantReconciler) SetupWithManager added in v0.4.0

func (r *GatewayKuadrantReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type HTTPRouteEventMapper added in v0.2.0

type HTTPRouteEventMapper struct {
	Logger logr.Logger
}

HTTPRouteEventMapper is an EventHandler that maps HTTPRoute object events to Policy events.

func (*HTTPRouteEventMapper) MapToAuthPolicy added in v0.2.0

func (m *HTTPRouteEventMapper) MapToAuthPolicy(_ context.Context, obj client.Object) []reconcile.Request

func (*HTTPRouteEventMapper) MapToRateLimitPolicy added in v0.2.0

func (m *HTTPRouteEventMapper) MapToRateLimitPolicy(_ context.Context, obj client.Object) []reconcile.Request

type HTTPRouteParentRefsEventMapper added in v0.4.0

type HTTPRouteParentRefsEventMapper struct {
	Logger logr.Logger
	Client client.Client
}

HTTPRouteParentRefsEventMapper is an EventHandler that maps HTTPRoute events to policy events, by going through the parentRefs of the route and finding all policies that target one of its parent resources, thus yielding events for those policies.

func (*HTTPRouteParentRefsEventMapper) MapToAuthPolicy added in v0.4.0

func (m *HTTPRouteParentRefsEventMapper) MapToAuthPolicy(obj client.Object) []reconcile.Request

func (*HTTPRouteParentRefsEventMapper) MapToRateLimitPolicy added in v0.4.0

func (m *HTTPRouteParentRefsEventMapper) MapToRateLimitPolicy(obj client.Object) []reconcile.Request

type KuadrantReconciler

type KuadrantReconciler struct {
	*reconcilers.BaseReconciler
	Scheme *runtime.Scheme
}

KuadrantReconciler reconciles a Kuadrant object

func (*KuadrantReconciler) Reconcile

func (r *KuadrantReconciler) Reconcile(eventCtx 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. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*KuadrantReconciler) SetupWithManager

func (r *KuadrantReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type LimitadorClusterEnvoyFilterReconciler added in v0.4.0

type LimitadorClusterEnvoyFilterReconciler struct {
	*reconcilers.BaseReconciler
}

LimitadorClusterEnvoyFilterReconciler reconciles a EnvoyFilter object with limitador's cluster

func (*LimitadorClusterEnvoyFilterReconciler) Reconcile added in v0.4.0

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*LimitadorClusterEnvoyFilterReconciler) SetupWithManager added in v0.4.0

func (r *LimitadorClusterEnvoyFilterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RateLimitPolicyReconciler added in v0.2.0

type RateLimitPolicyReconciler struct {
	reconcilers.TargetRefReconciler
}

RateLimitPolicyReconciler reconciles a RateLimitPolicy object

func (*RateLimitPolicyReconciler) Reconcile added in v0.2.0

func (r *RateLimitPolicyReconciler) Reconcile(eventCtx 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. TODO(user): Modify the Reconcile function to compare the state specified by the RateLimitPolicy object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*RateLimitPolicyReconciler) SetupWithManager added in v0.2.0

func (r *RateLimitPolicyReconciler) SetupWithManager(mgr ctrl.Manager) 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