Gate apidiscovery/v2beta1 serving with a feature gate

Kubernetes-commit: 95d3d4a22d705ef6bf2d494c065743d356914e8d
This commit is contained in:
Jefftree 2025-03-13 17:58:06 +00:00 committed by Kubernetes Publisher
parent 595b7ca245
commit 8ddf4401e5
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ func convertAPISubresource(parent metav1.APIResource, in apidiscovery.APISubreso
return result, nil
}
// Please note the functions below will be removed in v1.33. They facilitate conversion
// Please note the functions below will be removed in v1.35. They facilitate conversion
// between the deprecated type apidiscoveryv2beta1.APIGroupDiscoveryList.
// SplitGroupsAndResourcesV2Beta1 transforms "aggregated" discovery top-level structure into

View File

@ -1425,7 +1425,7 @@ func TestMemCacheAggregatedServerGroups(t *testing.T) {
return
}
// Content-type is "aggregated" discovery format.
w.Header().Set("Content-Type", discovery.AcceptV2Beta1)
w.Header().Set("Content-Type", discovery.AcceptV2)
w.WriteHeader(http.StatusOK)
w.Write(output)
}))