mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Remove special case logic in apiserver to serve all APIs when binary version is set artifically to 0.0
This commit is contained in:
parent
0be8f9ff63
commit
1864e7131e
@ -100,8 +100,7 @@ func (e *resourceExpirationEvaluator) shouldServe(gv schema.GroupVersion, versio
|
|||||||
}
|
}
|
||||||
|
|
||||||
introduced, ok := versionedPtr.(introducedInterface)
|
introduced, ok := versionedPtr.(introducedInterface)
|
||||||
// skip the introduced check for test when currentVersion is 0.0 to test all apis
|
if ok {
|
||||||
if ok && (e.currentVersion.Major() > 0 || e.currentVersion.Minor() > 0) {
|
|
||||||
majorIntroduced, minorIntroduced := introduced.APILifecycleIntroduced()
|
majorIntroduced, minorIntroduced := introduced.APILifecycleIntroduced()
|
||||||
verIntroduced := apimachineryversion.MajorMinor(uint(majorIntroduced), uint(minorIntroduced))
|
verIntroduced := apimachineryversion.MajorMinor(uint(majorIntroduced), uint(minorIntroduced))
|
||||||
if e.currentVersion.LessThan(verIntroduced) {
|
if e.currentVersion.LessThan(verIntroduced) {
|
||||||
|
Loading…
Reference in New Issue
Block a user