k3s/pkg/apis/scheduling
Kubernetes Submit Queue 71050b6f2d
Merge pull request #60519 from bsalamat/auto_prio_class
Automatic merge from submit-queue (batch tested with PRs 60519, 61099, 61218, 61166, 61714). 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>.

Automatically add system critical priority classes at cluster boostrapping

**What this PR does / why we need it**:
We had two PriorityClasses that were hardcoded and special cased in our code base. These two priority classes never existed in API server. Priority admission controller had code to resolve these two names. This PR removes the hardcoded PriorityClasses and adds code to create these PriorityClasses automatically when API server starts.

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

ref/ #57471

**Special notes for your reviewer**:

**Release note**:

```release-note
Automatically add system critical priority classes at cluster boostrapping.
```

/sig scheduling
2018-03-26 23:20:05 -07:00
..
fuzzer update BUILD files 2017-10-15 18:18:13 -07:00
install Update bazel 2017-10-18 17:24:04 +02:00
v1alpha1 regenerated all files and remove all YEAR fields 2018-03-08 17:52:48 +08:00
validation Allow system critical priority classes in API validation 2018-03-06 10:06:58 -08:00
BUILD autogenerated files 2018-03-06 10:06:58 -08:00
doc.go deepcopy: remove deepcopy register tags 2017-11-10 18:25:26 +01:00
helpers.go Allow system critical priority classes in API validation 2018-03-06 10:06:58 -08:00
helpers_test.go Allow system critical priority classes in API validation 2018-03-06 10:06:58 -08:00
register.go
types.go Auto-create system critical prioity classes at API server startup 2018-03-02 16:50:07 -08:00
zz_generated.deepcopy.go regenerated all files and remove all YEAR fields 2018-03-08 17:52:48 +08:00