kubernetes/plugin/pkg/scheduler/algorithm
Kubernetes Submit Queue 171f48af7b Merge pull request #47179 from ddysher/local-isolation-fix
Automatic merge from submit-queue (batch tested with PRs 47883, 47179, 46966, 47982, 47945)

Fix local isolation for pod requesting only overlay or scratch

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

Fix overlay resource predicates for pod with only overlay or scratch storage request.

E.g. the following pod can pass predicate even if overlay is only 512Gi.
```yaml
apiVersion: v1
kind: Pod
metadata:
  name: pod
spec:
  containers:
  - name: nginx
    image: nginx
    resources:
      requests:
        storage.kubernetes.io/overlay: 1024Gi
```

similarly, following pod will also pass predicate
```yaml
apiVersion: v1
kind: Pod
metadata:
  name: pod
spec:
  containers:
  - name: nginx
    image: nginx
    volumeMounts:
    - name: data
      mountPath: /data
  volumes:
  - name: data
    emptyDir:
      sizeLimit: 1024Gi
```

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/kubernetes/kubernetes/issues/47798

**Special notes for your reviewer**:

**Release note**:

```release-note
```

@jingxu97 @vishh @dashpole
2017-06-23 15:48:38 -07:00
..
predicates Merge pull request #47179 from ddysher/local-isolation-fix 2017-06-23 15:48:38 -07:00
priorities run hack/update-all 2017-06-22 11:31:03 -07:00
BUILD run hack/update-all 2017-06-22 11:31:03 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
scheduler_interface_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
scheduler_interface.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
types_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
types.go run hack/update-all 2017-06-22 11:31:03 -07:00
well_known_labels.go move labels to components which own the APIs 2017-05-31 10:32:06 -04:00