Skip to content

Commit d2c46eb

Browse files
authored
[Bugfix] Skip rotation when number of container is not the same (#793)
1 parent 2de58fa commit d2c46eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/deployment/rotation/arangod_containers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ func containersCompare(_ api.DeploymentSpec, _ api.ServerGroup, spec, status *co
4141
return func(builder api.ActionBuilder) (mode Mode, plan api.Plan, err error) {
4242
a, b := spec.Containers, status.Containers
4343

44-
if len(a) == 0 || len(b) == 0 {
44+
if len(a) == 0 || len(a) != len(b) {
45+
// If the number of the containers is different or is zero then skip rotation.
4546
return SkippedRotation, nil, nil
4647
}
4748

0 commit comments

Comments
 (0)