Skip to content

Commit 515c453

Browse files
author
lamai93
committed
Fixed.
1 parent e819660 commit 515c453

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

pkg/deployment/reconcile/reconciler.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func (r *Reconciler) CheckDeployment() error {
4848
status, _ := r.context.GetStatus()
4949

5050
if spec.GetMode().HasCoordinators() {
51-
5251
// Check if there are coordinators
5352
if len(status.Members.Coordinators) == 0 {
5453
// No more coordinators! Take immediate action

pkg/deployment/resources/pod_inspector.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -243,19 +243,6 @@ func (r *Resources) InspectPods(ctx context.Context) (util.Interval, error) {
243243
allMembersReady := status.Members.AllMembersReady(spec.GetMode(), spec.Sync.IsEnabled())
244244
status.Conditions.Update(api.ConditionTypeReady, allMembersReady, "", "")
245245

246-
if spec.GetMode().HasCoordinators() && status.Members.Coordinators.AllFailed() {
247-
log.Error().Msg("All coordinators failed - reset")
248-
for _, m := range status.Members.Coordinators {
249-
if err := r.context.DeletePod(m.PodName); err != nil {
250-
log.Error().Err(err).Msg("Failed to delete pod")
251-
}
252-
m.Phase = api.MemberPhaseNone
253-
if err := status.Members.Update(m, api.ServerGroupCoordinators); err != nil {
254-
log.Error().Err(err).Msg("Failed to update member")
255-
}
256-
}
257-
}
258-
259246
// Update conditions
260247
if len(podNamesWithScheduleTimeout) > 0 {
261248
if status.Conditions.Update(api.ConditionTypePodSchedulingFailure, true,

0 commit comments

Comments
 (0)