mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +00:00
Fix incorrect reference to name in v1beta3 API.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -26,7 +26,7 @@ import (
|
||||
func TestMatchNode(t *testing.T) {
|
||||
testFieldMap := map[bool][]fields.Set{
|
||||
true: {
|
||||
{"name": "foo"},
|
||||
{"metadata.name": "foo"},
|
||||
},
|
||||
false: {
|
||||
{"foo": "bar"},
|
||||
|
Reference in New Issue
Block a user