mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Add field selector to List, implement for pods.
This commit is contained in:
@@ -86,7 +86,7 @@ func (rs *REST) Get(id string) (runtime.Object, error) {
|
||||
return rs.toApiMinion(id), err
|
||||
}
|
||||
|
||||
func (rs *REST) List(selector labels.Selector) (runtime.Object, error) {
|
||||
func (rs *REST) List(label, field labels.Selector) (runtime.Object, error) {
|
||||
nameList, err := rs.registry.List()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@@ -67,7 +67,7 @@ func TestMinionREST(t *testing.T) {
|
||||
t.Errorf("delete returned wrong error")
|
||||
}
|
||||
|
||||
list, err := ms.List(labels.Everything())
|
||||
list, err := ms.List(labels.Everything(), labels.Everything())
|
||||
if err != nil {
|
||||
t.Errorf("got error calling List")
|
||||
}
|
||||
|
Reference in New Issue
Block a user