mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +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:
@@ -53,7 +53,7 @@ func TestDeleteObjectByTuple(t *testing.T) {
|
||||
cmd.Flags().Set("cascade", "false")
|
||||
cmd.Run(cmd, []string{"replicationcontrollers/redis-master-controller"})
|
||||
|
||||
if buf.String() != "replicationControllers/redis-master-controller\n" {
|
||||
if buf.String() != "replicationcontrollers/redis-master-controller\n" {
|
||||
t.Errorf("unexpected output: %s", buf.String())
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ func TestDeleteNamedObject(t *testing.T) {
|
||||
cmd.Flags().Set("cascade", "false")
|
||||
cmd.Run(cmd, []string{"replicationcontrollers", "redis-master-controller"})
|
||||
|
||||
if buf.String() != "replicationControllers/redis-master-controller\n" {
|
||||
if buf.String() != "replicationcontrollers/redis-master-controller\n" {
|
||||
t.Errorf("unexpected output: %s", buf.String())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user