From 2c0c44a25e0f9ac0091cf4d3d2a47606dd4e62f6 Mon Sep 17 00:00:00 2001 From: Veronika Fisarova Date: Thu, 9 Jan 2025 10:30:28 +0100 Subject: [PATCH] Fix the route timeout webhook reference SetDefaultRouteAnnotations(..) should be of type *BarbicanSpecCore to correctly reference set timeout (not the BarbicanAPI one) Signed-off-by: Veronika Fisarova --- api/v1beta1/barbican_webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1beta1/barbican_webhook.go b/api/v1beta1/barbican_webhook.go index 05ea5cb..94fd9e7 100644 --- a/api/v1beta1/barbican_webhook.go +++ b/api/v1beta1/barbican_webhook.go @@ -229,7 +229,7 @@ func (spec *BarbicanSpecCore) GetDefaultRouteAnnotations() (annotations map[stri } // SetDefaultRouteAnnotations sets HAProxy timeout values for Barbican API routes -func (spec *BarbicanAPITemplateCore) SetDefaultRouteAnnotations(annotations map[string]string) { +func (spec *BarbicanSpecCore) SetDefaultRouteAnnotations(annotations map[string]string) { const haProxyAnno = "haproxy.router.openshift.io/timeout" // Use a custom annotation to flag when the operator has set the default HAProxy timeout // With the annotation func determines when to overwrite existing HAProxy timeout with the APITimeout