New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor client creation/usage #333
Refactor client creation/usage #333
Conversation
/assign @adambkaplan |
/retest |
/retest |
/retest |
Refactor client creation/usage between the controller and the generator to reuse already created clients instead of creating so many new ones
/assign @ricardomaraschini |
@adambkaplan bump |
configinformers "github.com/openshift/client-go/config/informers/externalversions" | ||
routeset "github.com/openshift/client-go/route/clientset/versioned" | ||
routesetv1 "github.com/openshift/client-go/route/clientset/versioned/typed/route/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have unversioned and versioned ClientSets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The informers needed the versioned ones, and the generators needed the unversioned ones
/lgtm As a follow-up the generators should use versioned clientsets (if possible) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, coreydaley The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Refactor client creation/usage between the controller and the generator
to reuse already created clients instead of creating so many new ones