From a5bc5e1d470b2fe6b67ebe29c492d96d43df059c Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Mon, 12 Feb 2024 17:48:50 -0500 Subject: [PATCH] Create statefulset even on cert update failure (#1981) --- 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