From 8a15533166b6bbf538224d1ab5a8a0acd882fa15 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Wed, 15 Nov 2023 11:15:15 +0100 Subject: [PATCH] minor: some constants for defined types Signed-off-by: Eguzki Astiz Lezaun --- api/v1alpha1/limitador_types.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/v1alpha1/limitador_types.go b/api/v1alpha1/limitador_types.go index c0309e46..b4dc4d4d 100644 --- a/api/v1alpha1/limitador_types.go +++ b/api/v1alpha1/limitador_types.go @@ -152,10 +152,20 @@ type LimitadorList struct { // +kubebuilder:validation:Enum=NONE;DRAFT_VERSION_03 type RateLimitHeadersType string +const ( + RateLimitHeadersTypeNONE RateLimitHeadersType = "NONE" + RateLimitHeadersTypeDraft03 RateLimitHeadersType = "DRAFT_VERSION_03" +) + // Telemetry defines the level of metrics Limitador will expose to the user // +kubebuilder:validation:Enum=basic;exhaustive type Telemetry string +const ( + TelemetryBasic Telemetry = "basic" + TelemetryExhaustive Telemetry = "exhaustive" +) + // Storage contains the options for Limitador counters database or in-memory data storage type Storage struct { // +optional