Skip to content

Commit

Permalink
Remove injected topology hostname label (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellistarn committed Sep 29, 2021
1 parent ac415d3 commit 41ef436
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controllers/allocation/scheduling/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func (s *Scheduler) solve(ctx context.Context, constraints *v1alpha4.Constraints
if err != nil {
return nil, fmt.Errorf("getting schedules, %w", err)
}
// Remove labels injected by TopologySpreadConstraints.
for _, schedule := range schedules {
delete(schedule.Labels, v1.LabelHostname)
}
return schedules, nil
}

Expand Down

0 comments on commit 41ef436

Please sign in to comment.