k3s/pkg/api/validation
Kubernetes Submit Queue 0f8eaa45dd Merge pull request #49976 from aveshagarwal/master-pod-affinities-topology-key
Automatic merge from submit-queue (batch tested with PRs 50531, 50853, 49976, 50939, 50607)

Do not allow empty topology key for pod affinities.

**What this PR does / why we need it**:
This PR do not allow empty topology key for all 4 pod affinities.

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

**Special notes for your reviewer**:

**Release note**:

```release-note
Affinity in annotations alpha feature is no longer supported in 1.8. Anyone upgrading from 1.7 with AffinityInAnnotation feature enabled must ensure pods (specifically with pod anti-affinity PreferredDuringSchedulingIgnoredDuringExecution) with empty TopologyKey fields must be removed before upgrading to 1.8.
```
@kubernetes/sig-scheduling-bugs  @bsalamat @davidopp
2017-08-21 15:46:20 -07:00
..
BUILD add diff details to pod validation error 2017-08-18 09:01:13 -04:00
OWNERS Remove myself from a bunch of places 2017-07-20 12:10:46 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
events.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
events_test.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
validation.go Merge pull request #49976 from aveshagarwal/master-pod-affinities-topology-key 2017-08-21 15:46:20 -07:00
validation_test.go Merge pull request #49976 from aveshagarwal/master-pod-affinities-topology-key 2017-08-21 15:46:20 -07:00