mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Switch to versioned ListOptions in client.
This commit is contained in:
4
pkg/client/cache/reflector_test.go
vendored
4
pkg/client/cache/reflector_test.go
vendored
@@ -35,10 +35,10 @@ type testLW struct {
|
||||
WatchFunc func(resourceVersion string) (watch.Interface, error)
|
||||
}
|
||||
|
||||
func (t *testLW) List(options unversioned.ListOptions) (runtime.Object, error) {
|
||||
func (t *testLW) List(options api.ListOptions) (runtime.Object, error) {
|
||||
return t.ListFunc()
|
||||
}
|
||||
func (t *testLW) Watch(options unversioned.ListOptions) (watch.Interface, error) {
|
||||
func (t *testLW) Watch(options api.ListOptions) (watch.Interface, error) {
|
||||
return t.WatchFunc(options.ResourceVersion)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user