Documentation ¶
Index ¶
Constants ¶
const ( EnvoysHTTPPortNumber = 8080 EnvoysHTTPConnectionManagerName = "envoy.filters.network.http_connection_manager" VSAnnotationRateLimitPolicy = "kuadrant.io/ratelimitpolicy" )
const ( ParentRefsSeparator = "," EnvoyFilterParentRefsAnnotation = "kuadrant.io/parentRefs" )
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" )
const HTTPRouteNamePrefix = "hr"
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) 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) SetupWithManager ¶
func (r *VirtualServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.