k3s/pkg/apis/core/validation
Kubernetes Submit Queue 245ca8ef1f
Merge pull request #59291 from bsalamat/fix_validation
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>.

Remove validation failure of Pod priority when the feature is disabled

**What this PR does / why we need it**:
I learned that fields specified in the API should be silently ignored when the feature is disabled. This makes sense as downgrading a cluster would fail otherwise. This PR removes the validation logic that ensures Pod priority is not set when priority feature is disabled.

**Special notes for your reviewer**:

**Release note**:

```release-note
Pod priority can be specified ins PodSpec even when the feature is disabled, but it will be effective only when the feature is enabled.
```

/sig scheduling
ref: #57471
2018-02-12 11:54:39 -08:00
..
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
OWNERS
doc.go pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
events.go Add new Events API group 2017-11-22 18:40:09 +00:00
events_test.go Add new Events API group 2017-11-22 18:40:09 +00:00
validation.go Merge pull request #59291 from bsalamat/fix_validation 2018-02-12 11:54:39 -08:00
validation_test.go Merge pull request #59291 from bsalamat/fix_validation 2018-02-12 11:54:39 -08:00