mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
fix apiregistration priority
v1 discovery always has apiregistration first. this rigs the priority to be greater than maximum so it is guaranteed to be first in the list
This commit is contained in:
parent
93caf125b9
commit
c43105d0dc
@ -39,7 +39,10 @@ import (
|
||||
)
|
||||
|
||||
var APIRegistrationGroupVersion metav1.GroupVersion = metav1.GroupVersion{Group: "apiregistration.k8s.io", Version: "v1"}
|
||||
var APIRegistrationGroupPriority int = 18000
|
||||
|
||||
// Maximum is 20000. Set to higher than that so apiregistration always is listed
|
||||
// first (mirrors v1 discovery behavior)
|
||||
var APIRegistrationGroupPriority int = 20001
|
||||
|
||||
// Given a list of APIServices and proxyHandlers for contacting them,
|
||||
// DiscoveryManager caches a list of discovery documents for each server
|
||||
|
Loading…
Reference in New Issue
Block a user