k3s/pkg/scheduler/algorithm
Kubernetes Submit Queue a2af1215d6
Merge pull request #61548 from aveshagarwal/master-service-anti-affinity-1
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Do not consider pods being deleted in the same namespace for spreading purposes  for service anti-affinity priority similar to selectorspread priority.

**What this PR does / why we need it**:

Currently for service anti-affinity priority, pods being deleted in the same namespace are being considered in computation for spreading purposes, which should not happen. This PR aligns it with selectorspread priority, which also does spreading and does not consider pods being deleted in the same namespace. 

@bsalamat @timothysc @kubernetes/sig-scheduling-bugs 

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
None
```
2018-03-25 14:13:51 -07:00
..
predicates Revert "Revert revert of equivalence class hash calculation in scheduler" 2018-03-23 17:34:49 -07:00
priorities Do not consider pods being deleted in the same namespace for spreading purposes 2018-03-22 13:51:31 -04:00
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
doc.go Fix golint errors in `pkg/scheduler` based on golint check 2018-02-08 15:22:47 +08:00
scheduler_interface.go Add preemption in scheduler extender 2018-03-02 17:12:02 -08:00
scheduler_interface_test.go
types.go Revert "Revert revert of equivalence class hash calculation in scheduler" 2018-03-23 17:34:49 -07:00
types_test.go Rename func name according TODO 2018-01-15 00:08:59 -05:00
well_known_labels.go Added unscheduable taint. 2018-03-16 09:13:08 +08:00