From e12dd5d7e1001762d7ed23a13f537b58d7f9449b Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Mon, 12 Feb 2024 15:42:39 -0500 Subject: [PATCH] Create statefulset even on cert update failure --- pkg/controller/main-controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/main-controller.go b/pkg/controller/main-controller.go index 6450c3170f5..b82538e94c3 100644 --- a/pkg/controller/main-controller.go +++ b/pkg/controller/main-controller.go @@ -985,7 +985,8 @@ func (c *Controller) syncHandler(key string) (Result, error) { // check if operator-ca-tls has to be updated or re-created in the tenant namespace operatorCATLSExists, err := c.checkOperatorCAForTenant(ctx, tenant) if err != nil { - return WrapResult(Result{}, err) + // Don't return here as we get stuck when recreating the stateful set + klog.Infof("There was an error while updating the certificate %s", err) } // consolidate the status of all pools. this is meant to cover for legacy tenants