Skip to content

Commit 1864e71

Browse files
committed
Remove special case logic in apiserver to serve all APIs when binary version is set artifically to 0.0
1 parent 0be8f9f commit 1864e71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

staging/src/k8s.io/apiserver/pkg/server/deleted_kinds.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ func (e *resourceExpirationEvaluator) shouldServe(gv schema.GroupVersion, versio
100100
}
101101

102102
introduced, ok := versionedPtr.(introducedInterface)
103-
// skip the introduced check for test when currentVersion is 0.0 to test all apis
104-
if ok && (e.currentVersion.Major() > 0 || e.currentVersion.Minor() > 0) {
103+
if ok {
105104
majorIntroduced, minorIntroduced := introduced.APILifecycleIntroduced()
106105
verIntroduced := apimachineryversion.MajorMinor(uint(majorIntroduced), uint(minorIntroduced))
107106
if e.currentVersion.LessThan(verIntroduced) {

0 commit comments

Comments
 (0)