Fix incorrect reference to name in v1beta3 API.

This commit is contained in:
Daniel Smith
2015-04-03 14:10:47 -07:00
parent 0c2d3ffe68
commit 34b399ca02
11 changed files with 51 additions and 46 deletions

View File

@@ -85,7 +85,7 @@ type ResourceGetter interface {
// NodeToSelectableFields returns a label set that represents the object.
func NodeToSelectableFields(node *api.Node) fields.Set {
return fields.Set{
"name": node.Name,
"metadata.name": node.Name,
}
}

View File

@@ -26,7 +26,7 @@ import (
func TestMatchNode(t *testing.T) {
testFieldMap := map[bool][]fields.Set{
true: {
{"name": "foo"},
{"metadata.name": "foo"},
},
false: {
{"foo": "bar"},