fix panic on scale down

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2021-09-03 14:57:32 +02:00 committed by Nicolas De loof
parent ef461a3a26
commit bd22aed868
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func (c *convergence) ensureService(ctx context.Context, project *types.Project,
eg, _ := errgroup.WithContext(ctx)
for i, container := range containers {
if i > expected {
if i >= expected {
// Scale Down
container := container
eg.Go(func() error {