From fe7f1b07c9ee4a16842ec2cbfc4d5b2395b5b7d1 Mon Sep 17 00:00:00 2001 From: soharab-ic <156293296+soharab-ic@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:10:08 +0530 Subject: [PATCH] Fix cleanup in executortype poolmgr on invalid manifest (#3034) The bug breaks the poolmgr service which stops the deletion and creation of new environments. Signed-off-by: Md Soharab Ansari --- pkg/executor/executortype/poolmgr/gpm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/executor/executortype/poolmgr/gpm.go b/pkg/executor/executortype/poolmgr/gpm.go index 9e2ea940..1675f087 100644 --- a/pkg/executor/executortype/poolmgr/gpm.go +++ b/pkg/executor/executortype/poolmgr/gpm.go @@ -548,7 +548,7 @@ func (gpm *GenericPoolManager) service() { pool, ok := gpm.pools[key] if !ok { gpm.logger.Error("Could not find pool", zap.String("environment", env.ObjectMeta.Name), zap.String("namespace", env.ObjectMeta.Namespace)) - return + continue } delete(gpm.pools, key) if pool != nil {