apim

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvoysHTTPPortNumber            = 8080
	EnvoysHTTPConnectionManagerName = "envoy.filters.network.http_connection_manager"

	VSAnnotationRateLimitPolicy = "kuadrant.io/ratelimitpolicy"
)
View Source
const (
	ParentRefsSeparator = ","

	EnvoyFilterParentRefsAnnotation = "kuadrant.io/parentRefs"
)
View Source
const (
	// TODO(eastizle): KuadrantAddVSAnnotation annotation does not support multiple VirtualServices having reference to the same RateLimitPolicy
	// The annotation key is fixed, the RLP name is in the value
	KuadrantAddVSAnnotation    = "kuadrant.io/add-virtualservice"
	KuadrantDeleteVSAnnotation = "kuadrant.io/delete-virtualservice"
	KuadrantAddHRAnnotation    = "kuadrant.io/add-httproute"
	KuadrantDeleteHRAnnotation = "kuadrant.io/delete-httproute"
)
View Source
const HTTPRouteNamePrefix = "hr"
View Source
const VirtualServiceNamePrefix = "vs"

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRouteReconciler

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

HTTPRouteReconciler reconciles Gateway API's HTTPRoute object

func (*HTTPRouteReconciler) Reconcile

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

func (*HTTPRouteReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type RateLimitPolicyReconciler

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

RateLimitPolicyReconciler reconciles a RateLimitPolicy object

func (*RateLimitPolicyReconciler) Reconcile

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

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

SetupWithManager sets up the controller with the Manager.

type VirtualServiceReconciler

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

VirtualServiceReconciler reconciles Istio's VirtualService object

func (*VirtualServiceReconciler) Reconcile

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

func (*VirtualServiceReconciler) SetupWithManager

func (r *VirtualServiceReconciler) 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