mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
fix(host): ensure cri pod removed (#20406)
This commit is contained in:
@@ -617,6 +617,12 @@ func (s *sPodGuestInstance) ensurePodRemoved(ctx context.Context, timeout int64)
|
||||
return errors.Wrapf(err, "remove cri pod: %s", s.getCRIId())
|
||||
}
|
||||
}
|
||||
p, _ := s.getPod(ctx)
|
||||
if p != nil {
|
||||
if err := s.getCRI().RemovePod(ctx, p.GetId()); err != nil {
|
||||
return errors.Wrapf(err, "remove cri pod: %s", p.GetId())
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user