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 <soharab.ansari@infracloud.io>
This commit is contained in:
soharab-ic
2024-10-08 19:10:08 +05:30
committed by GitHub
parent 352090d092
commit fe7f1b07c9
+1 -1
View File
@@ -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 {