mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-08 14:29:45 +00:00
Rename client Minions->Nodes, select the correct path for v1beta3
Replaces the client public interface but leaves old references to "minions" for a later refactor. Selects the path "nodes" for v1beta3 and "minions" for older versions.
This commit is contained in:
@@ -141,7 +141,7 @@ func TestMinionListConversionToNew(t *testing.T) {
|
||||
oldMinion := func(id string) current.Minion {
|
||||
return current.Minion{TypeMeta: current.TypeMeta{ID: id}}
|
||||
}
|
||||
newMinion := func(id string) newer.Node {
|
||||
newNode := func(id string) newer.Node {
|
||||
return newer.Node{ObjectMeta: newer.ObjectMeta{Name: id}}
|
||||
}
|
||||
oldMinions := []current.Minion{
|
||||
@@ -149,8 +149,8 @@ func TestMinionListConversionToNew(t *testing.T) {
|
||||
oldMinion("bar"),
|
||||
}
|
||||
newMinions := []newer.Node{
|
||||
newMinion("foo"),
|
||||
newMinion("bar"),
|
||||
newNode("foo"),
|
||||
newNode("bar"),
|
||||
}
|
||||
|
||||
table := []struct {
|
||||
@@ -188,7 +188,7 @@ func TestMinionListConversionToOld(t *testing.T) {
|
||||
oldMinion := func(id string) current.Minion {
|
||||
return current.Minion{TypeMeta: current.TypeMeta{ID: id}}
|
||||
}
|
||||
newMinion := func(id string) newer.Node {
|
||||
newNode := func(id string) newer.Node {
|
||||
return newer.Node{ObjectMeta: newer.ObjectMeta{Name: id}}
|
||||
}
|
||||
oldMinions := []current.Minion{
|
||||
@@ -196,8 +196,8 @@ func TestMinionListConversionToOld(t *testing.T) {
|
||||
oldMinion("bar"),
|
||||
}
|
||||
newMinions := []newer.Node{
|
||||
newMinion("foo"),
|
||||
newMinion("bar"),
|
||||
newNode("foo"),
|
||||
newNode("bar"),
|
||||
}
|
||||
|
||||
newML := &newer.NodeList{Items: newMinions}
|
||||
|
Reference in New Issue
Block a user