You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the planned refactoring to use the controller-runtime #382 , the provided split-client should allow reading(List/Get) objects from the informer cache.
Currently the SDK provides a List function
https://github.com/operator-framework/operator-sdk/blob/master/pkg/sdk/query.go#L59
which is used to setup the List and Watch
https://github.com/operator-framework/operator-sdk/blob/master/pkg/sdk/informer.go#L65
when creating the SharedIndexInformer
https://github.com/operator-framework/operator-sdk/blob/master/pkg/sdk/informer.go#L54
The sample-controller approach (https://github.com/kubernetes/sample-controller) uses 'Listers'
https://github.com/kubernetes/sample-controller/blob/master/pkg/client/listers/samplecontroller/v1alpha1/foo.go#L48
for querying Objects from the local Index.
So I was wondering why Listers are not included in the design of the SDK?
Using a List function which always makes call to the API server can cause load on the server.
Listers would help reduce these calls, no?
The text was updated successfully, but these errors were encountered: