From 7647e701fd92439fbbe6de50fdfeba5854ab0116 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Wed, 15 Nov 2023 10:51:37 +0100 Subject: [PATCH] limitador with rateLimitHeaders set to DRAFT_VERSION_03 Additionally, upgrade Limitador type to v0.6.0 Signed-off-by: Eguzki Astiz Lezaun --- controllers/kuadrant_controller.go | 4 +++- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/controllers/kuadrant_controller.go b/controllers/kuadrant_controller.go index 3aa126ac7..131d0df8e 100644 --- a/controllers/kuadrant_controller.go +++ b/controllers/kuadrant_controller.go @@ -464,7 +464,9 @@ func (r *KuadrantReconciler) reconcileLimitador(ctx context.Context, kObj *kuadr Name: common.LimitadorName, Namespace: kObj.Namespace, }, - Spec: limitadorv1alpha1.LimitadorSpec{}, + Spec: limitadorv1alpha1.LimitadorSpec{ + RateLimitHeaders: &[]limitadorv1alpha1.RateLimitHeadersType{"DRAFT_VERSION_03"}[0], + }, } err := r.SetOwnerReference(kObj, limitador) diff --git a/go.mod b/go.mod index ac7f80a26..aa77e883a 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/google/uuid v1.3.1 github.com/kuadrant/authorino v0.15.0 github.com/kuadrant/authorino-operator v0.9.0 - github.com/kuadrant/limitador-operator v0.4.0 + github.com/kuadrant/limitador-operator v0.6.0 github.com/onsi/ginkgo/v2 v2.11.0 github.com/onsi/gomega v1.27.10 go.uber.org/zap v1.26.0 diff --git a/go.sum b/go.sum index 4330d80ce..ab537998a 100644 --- a/go.sum +++ b/go.sum @@ -197,8 +197,8 @@ github.com/kuadrant/authorino v0.15.0 h1:Xw/buh/wTINdL+IpLSxhlpet4hpleMxZzfx39c4 github.com/kuadrant/authorino v0.15.0/go.mod h1:vXkHKrntn8DR7kt8a8Ohxq+2lgAD0jWivThoP+7ASew= github.com/kuadrant/authorino-operator v0.9.0 h1:EV7zrYBNcd53HPQMivvTwe/+DIATTK7O4znJzh4xON8= github.com/kuadrant/authorino-operator v0.9.0/go.mod h1:VkUqS4CHNiaHMrjSFQ5V71DN829kPnqT3FQxqlOntEI= -github.com/kuadrant/limitador-operator v0.4.0 h1:HgJi7LuOsenCUMs2ACCfKMKsKpfHcqmmwVmqpci0hw4= -github.com/kuadrant/limitador-operator v0.4.0/go.mod h1:5fQo2XwxPr7bDObut9sK5sHCnK4hwAmTsTptaYvGfuc= +github.com/kuadrant/limitador-operator v0.6.0 h1:WsXjPgzX5/021SNEaI9Y1cjQtU7JUyXGdjLx+06+mn0= +github.com/kuadrant/limitador-operator v0.6.0/go.mod h1:hqKQ0Qtwl3UX/NqOYdLFUARlfUS7YNWnR28owMuAXfs= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/lestrrat-go/backoff/v2 v2.0.8 h1:oNb5E5isby2kiro9AgdHLv5N5tint1AnDVVf2E2un5A=