Skip to content

Commit dd5ebbb

Browse files
authored
Fix rotating phase (#679)
1 parent 128f2ed commit dd5ebbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/deployment/resources/pod_inspector.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (r *Resources) InspectPods(ctx context.Context, cachedStatus inspector.Insp
202202
case api.MemberPhaseNone:
203203
// Do nothing
204204
log.Debug().Str("pod-name", podName).Msg("PodPhase is None, waiting for the pod to be recreated")
205-
case api.MemberPhaseShuttingDown, api.MemberPhaseRotating, api.MemberPhaseUpgrading, api.MemberPhaseFailed:
205+
case api.MemberPhaseShuttingDown, api.MemberPhaseUpgrading, api.MemberPhaseFailed:
206206
// Shutdown was intended, so not need to do anything here.
207207
// Just mark terminated
208208
wasTerminated := m.Conditions.IsTrue(api.ConditionTypeTerminated)
@@ -217,6 +217,7 @@ func (r *Resources) InspectPods(ctx context.Context, cachedStatus inspector.Insp
217217
return maskAny(err)
218218
}
219219
}
220+
case api.MemberPhaseRotating:
220221
fallthrough
221222
default:
222223
log.Debug().Str("pod-name", podName).Msg("Pod is gone")

0 commit comments

Comments
 (0)