k3s/pkg/scheduler
Kubernetes Submit Queue 98968c36d8
Merge pull request #62715 from bsalamat/fix_antiaffinity
Automatic merge from submit-queue (batch tested with PRs 62761, 62715). 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>.

Fix inter-pod anti-affinity check to consider a pod a match when all the anti-affinity terms match

**What this PR does / why we need it**:
Inter-pod anti-affinity check used to incorrectly consider a pod a match when any of the anti-affinity terms matched the pod. This PR fixes the logic to consider a pod a match when all the terms match the pod.

**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 #62567

**Special notes for your reviewer**:

**Release note**:

```release-note
Fix inter-pod anti-affinity check to consider a pod a match when all the anti-affinity terms match.
```

/sig scheduling
2018-04-17 22:38:13 -07:00
..
algorithm Merge pull request #62715 from bsalamat/fix_antiaffinity 2018-04-17 22:38:13 -07:00
algorithmprovider Merge pull request #60398 from k82cn/k8s_60397 2018-04-04 15:06:19 -07:00
api Add Ignorable flag to extender 2018-03-30 15:10:31 -07:00
core Add test to verify preempt ignore 2018-04-04 16:28:15 -07:00
factory spec.SchedulerName should be spec.schedulerName in kube-scheduler help 2018-04-07 18:06:17 +08:00
metrics Fix golint errors in `pkg/scheduler` based on golint check 2018-02-08 15:22:47 +08:00
schedulercache Delete in-tree support for NVIDIA GPUs. 2018-04-02 20:17:01 -07:00
testing Scheduler cache comparer 2018-03-09 15:10:22 -08:00
util Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
volumebinder Use provided node object in volume binding predicate 2018-04-05 14:35:55 -07:00
BUILD Use pod UID as cache key instead of namespace/name 2018-03-13 10:25:37 -07:00
OWNERS Update OWNERS labels for cluster-lifecycle and scheduling 2018-04-05 16:25:04 -05:00
scheduler.go add one placeholder for err in scheduelr.go 2018-04-08 14:14:13 +08:00
scheduler_test.go Use pod UID as cache key instead of namespace/name 2018-03-13 10:25:37 -07:00
testutil.go remove unused func in FakeConfigurator of scheduler 2018-01-25 16:08:13 +08:00