@@ -74,7 +74,7 @@ func TestCacheFor(t *testing.T) {
7474 expectedC := Cache {
7575 ByOptionsLister : i ,
7676 }
77- testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt bool , namespaced bool ) (* informer.Informer , error ) {
77+ testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt bool , namespaced bool , watchable bool ) (* informer.Informer , error ) {
7878 assert .Equal (t , client , dynamicClient )
7979 assert .Equal (t , fields , fields )
8080 assert .Equal (t , expectedGVK , gvk )
@@ -119,7 +119,7 @@ func TestCacheFor(t *testing.T) {
119119 // need to set this so Run function is not nil
120120 SharedIndexInformer : sii ,
121121 }
122- testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool ) (* informer.Informer , error ) {
122+ testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool , watchable bool ) (* informer.Informer , error ) {
123123 assert .Equal (t , client , dynamicClient )
124124 assert .Equal (t , fields , fields )
125125 assert .Equal (t , expectedGVK , gvk )
@@ -161,7 +161,7 @@ func TestCacheFor(t *testing.T) {
161161 expectedC := Cache {
162162 ByOptionsLister : i ,
163163 }
164- testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool ) (* informer.Informer , error ) {
164+ testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool , watchable bool ) (* informer.Informer , error ) {
165165 assert .Equal (t , client , dynamicClient )
166166 assert .Equal (t , fields , fields )
167167 assert .Equal (t , expectedGVK , gvk )
@@ -200,7 +200,7 @@ func TestCacheFor(t *testing.T) {
200200 expectedC := Cache {
201201 ByOptionsLister : i ,
202202 }
203- testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool ) (* informer.Informer , error ) {
203+ testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool , watchable bool ) (* informer.Informer , error ) {
204204 assert .Equal (t , client , dynamicClient )
205205 assert .Equal (t , fields , fields )
206206 assert .Equal (t , expectedGVK , gvk )
@@ -248,7 +248,7 @@ func TestCacheFor(t *testing.T) {
248248 expectedC := Cache {
249249 ByOptionsLister : i ,
250250 }
251- testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool ) (* informer.Informer , error ) {
251+ testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced , watchable bool ) (* informer.Informer , error ) {
252252 assert .Equal (t , client , dynamicClient )
253253 assert .Equal (t , fields , fields )
254254 assert .Equal (t , expectedGVK , gvk )
@@ -295,7 +295,7 @@ func TestCacheFor(t *testing.T) {
295295 expectedC := Cache {
296296 ByOptionsLister : i ,
297297 }
298- testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced bool ) (* informer.Informer , error ) {
298+ testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt , namespaced , watchable bool ) (* informer.Informer , error ) {
299299 assert .Equal (t , client , dynamicClient )
300300 assert .Equal (t , fields , fields )
301301 assert .Equal (t , expectedGVK , gvk )
@@ -342,7 +342,7 @@ func TestCacheFor(t *testing.T) {
342342 expectedC := Cache {
343343 ByOptionsLister : i ,
344344 }
345- testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt bool , namespaced bool ) (* informer.Informer , error ) {
345+ testNewInformer := func (ctx context.Context , client dynamic.ResourceInterface , fields [][]string , transform cache.TransformFunc , gvk schema.GroupVersionKind , db db.Client , shouldEncrypt bool , namespaced bool , watchable bool ) (* informer.Informer , error ) {
346346 // we can't test func == func, so instead we check if the output was as expected
347347 input := "someinput"
348348 ouput , err := transform (input )
0 commit comments