mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-09 03:07:20 +00:00
fix fake_event_expansion.go
Kubernetes-commit: 68effc7b2d2428a1cca6322d8d87e17b4ff6f1b0
This commit is contained in:
parent
45e7f68a04
commit
6be328a96b
@ -17,9 +17,9 @@ limitations under the License.
|
|||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/fields"
|
"k8s.io/apimachinery/pkg/fields"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/client-go/pkg/api"
|
|
||||||
"k8s.io/client-go/pkg/api/v1"
|
"k8s.io/client-go/pkg/api/v1"
|
||||||
core "k8s.io/client-go/testing"
|
core "k8s.io/client-go/testing"
|
||||||
)
|
)
|
||||||
@ -67,9 +67,9 @@ func (c *FakeEvents) PatchWithEventNamespace(event *v1.Event, data []byte) (*v1.
|
|||||||
|
|
||||||
// Search returns a list of events matching the specified object.
|
// Search returns a list of events matching the specified object.
|
||||||
func (c *FakeEvents) Search(scheme *runtime.Scheme, objOrRef runtime.Object) (*v1.EventList, error) {
|
func (c *FakeEvents) Search(scheme *runtime.Scheme, objOrRef runtime.Object) (*v1.EventList, error) {
|
||||||
action := core.NewRootListAction(eventsResource, api.ListOptions{})
|
action := core.NewRootListAction(eventsResource, metav1.ListOptions{})
|
||||||
if c.ns != "" {
|
if c.ns != "" {
|
||||||
action = core.NewListAction(eventsResource, c.ns, api.ListOptions{})
|
action = core.NewListAction(eventsResource, c.ns, metav1.ListOptions{})
|
||||||
}
|
}
|
||||||
obj, err := c.Fake.Invokes(action, &v1.EventList{})
|
obj, err := c.Fake.Invokes(action, &v1.EventList{})
|
||||||
if obj == nil {
|
if obj == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user