diff --git a/staging/src/k8s.io/apiserver/pkg/server/deleted_kinds.go b/staging/src/k8s.io/apiserver/pkg/server/deleted_kinds.go index 564b5bc4352..28cc0bf05d3 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/deleted_kinds.go +++ b/staging/src/k8s.io/apiserver/pkg/server/deleted_kinds.go @@ -100,8 +100,7 @@ func (e *resourceExpirationEvaluator) shouldServe(gv schema.GroupVersion, versio } introduced, ok := versionedPtr.(introducedInterface) - // skip the introduced check for test when currentVersion is 0.0 to test all apis - if ok && (e.currentVersion.Major() > 0 || e.currentVersion.Minor() > 0) { + if ok { majorIntroduced, minorIntroduced := introduced.APILifecycleIntroduced() verIntroduced := apimachineryversion.MajorMinor(uint(majorIntroduced), uint(minorIntroduced)) if e.currentVersion.LessThan(verIntroduced) {