Node addresses
This commit is contained in:
@@ -1919,7 +1919,9 @@ func TestValidateMinion(t *testing.T) {
|
||||
Labels: validSelector,
|
||||
},
|
||||
Status: api.NodeStatus{
|
||||
HostIP: "something",
|
||||
Addresses: []api.NodeAddress{
|
||||
{Type: api.NodeLegacyHostIP, Address: "something"},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -1927,7 +1929,9 @@ func TestValidateMinion(t *testing.T) {
|
||||
Name: "abc",
|
||||
},
|
||||
Status: api.NodeStatus{
|
||||
HostIP: "something",
|
||||
Addresses: []api.NodeAddress{
|
||||
{Type: api.NodeLegacyHostIP, Address: "something"},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1944,7 +1948,7 @@ func TestValidateMinion(t *testing.T) {
|
||||
Labels: validSelector,
|
||||
},
|
||||
Status: api.NodeStatus{
|
||||
HostIP: "something",
|
||||
Addresses: []api.NodeAddress{},
|
||||
},
|
||||
},
|
||||
"invalid-labels": {
|
||||
@@ -2073,7 +2077,9 @@ func TestValidateMinionUpdate(t *testing.T) {
|
||||
Labels: map[string]string{"bar": "foo"},
|
||||
},
|
||||
Status: api.NodeStatus{
|
||||
HostIP: "1.2.3.4",
|
||||
Addresses: []api.NodeAddress{
|
||||
{Type: api.NodeLegacyHostIP, Address: "1.2.3.4"},
|
||||
},
|
||||
},
|
||||
}, api.Node{
|
||||
ObjectMeta: api.ObjectMeta{
|
||||
|
Reference in New Issue
Block a user