mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Register the API versions to the DefaultRESTMapper in the order of preferred versions first.
This makes kubectl sends requests to URLs in the format defined by the latest API version.
This commit is contained in:
@@ -163,7 +163,7 @@ func TestGetUnknownSchemaObjectListGeneric(t *testing.T) {
|
||||
output: "unlikelyversion",
|
||||
list: "v1beta3",
|
||||
obj1: "unlikelyversion", // doesn't have v1beta3
|
||||
obj2: "v1beta1", // version of the API response
|
||||
obj2: "v1beta3", // version of the API response
|
||||
},
|
||||
"handles common version": {
|
||||
output: "v1beta1",
|
||||
|
||||
Reference in New Issue
Block a user