File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
pkg/controller/controllertest Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ limitations under the License.
1717package controllertest
1818
1919import (
20+ "context"
2021 "time"
2122
2223 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -109,6 +110,10 @@ func (f *FakeInformer) Run(<-chan struct{}) {
109110 f .RunCount ++
110111}
111112
113+ func (f * FakeInformer ) RunWithContext (_ context.Context ) {
114+ f .RunCount ++
115+ }
116+
112117// Add fakes an Add event for obj.
113118func (f * FakeInformer ) Add (obj metav1.Object ) {
114119 for _ , h := range f .handlers {
@@ -135,6 +140,10 @@ func (f *FakeInformer) AddEventHandlerWithResyncPeriod(handler cache.ResourceEve
135140 return nil , nil
136141}
137142
143+ func (f * FakeInformer ) AddEventHandlerWithOptions (handler cache.ResourceEventHandler , options cache.HandlerOptions ) (cache.ResourceEventHandlerRegistration , error ) {
144+ return nil , nil
145+ }
146+
138147// RemoveEventHandler does nothing. TODO(community): Implement this.
139148func (f * FakeInformer ) RemoveEventHandler (handle cache.ResourceEventHandlerRegistration ) error {
140149 return nil
@@ -160,6 +169,10 @@ func (f *FakeInformer) SetWatchErrorHandler(cache.WatchErrorHandler) error {
160169 return nil
161170}
162171
172+ func (f * FakeInformer ) SetWatchErrorHandlerWithContext (handler cache.WatchErrorHandlerWithContext ) error {
173+ return nil
174+ }
175+
163176// SetTransform does nothing. TODO(community): Implement this.
164177func (f * FakeInformer ) SetTransform (t cache.TransformFunc ) error {
165178 return nil
You can’t perform that action at this time.
0 commit comments