Merge pull request #59991 from bsalamat/default_pc
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>. Pick the PriorityClass with the lowest value of priority in case more than one global default exists **What this PR does / why we need it**: Please see the referenced issue. **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 #59987 **Special notes for your reviewer**: **Release note**: ```release-note Priority admission controller picks a global default with the lowest priority value if more than one such default PriorityClass exists. ``` /sig scheduling cc/ @liggitt
This commit is contained in:
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@@ -84665,7 +84665,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"globalDefault": {
|
||||
"description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.",
|
||||
"description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"kind": {
|
||||
|
2
api/swagger-spec/scheduling.k8s.io_v1alpha1.json
generated
2
api/swagger-spec/scheduling.k8s.io_v1alpha1.json
generated
@@ -799,7 +799,7 @@
|
||||
},
|
||||
"globalDefault": {
|
||||
"type": "boolean",
|
||||
"description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class."
|
||||
"description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
|
Reference in New Issue
Block a user