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:
@@ -548,7 +548,7 @@ func (gpm *GenericPoolManager) service() {
|
|||||||
pool, ok := gpm.pools[key]
|
pool, ok := gpm.pools[key]
|
||||||
if !ok {
|
if !ok {
|
||||||
gpm.logger.Error("Could not find pool", zap.String("environment", env.ObjectMeta.Name), zap.String("namespace", env.ObjectMeta.Namespace))
|
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)
|
delete(gpm.pools, key)
|
||||||
if pool != nil {
|
if pool != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user