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
Cleanup: remove unnecessary check controllerutil.IsCacheNotStarted in controllers #9168
Conversation
since controller-runtime v0.8.1, manager start all caches before other Runnables so this function is not need anymore cf kubernetes-sigs/controller-runtime#1327 Signed-off-by: Vincent Gramer <vincent@kubermatic.com>
…ve unecessary check since controller-runtime v0.8.1 the manager start all cache before running runables, so this error can not happen. Signed-off-by: Vincent Gramer <vincent@kubermatic.com>
…nchronizer.go: remove unecessary check since controller-runtime v0.8.1 the manager start all cache before running runables, so this error can not happen. Signed-off-by: Vincent Gramer <vincent@kubermatic.com>
…oller.go: remove unecessary check since controller-runtime v0.8.1 the manager start all cache before running runables, so this error can not happen. Signed-off-by: Vincent Gramer <vincent@kubermatic.com>
… remove unecessary check since controller-runtime v0.8.1 the manager start all cache before running runables, so this error can not happen. Signed-off-by: Vincent Gramer <vincent@kubermatic.com>
…: remove unecessary check since controller-runtime v0.8.1 the manager start all cache before running runables, so this error can not happen. Signed-off-by: Vincent Gramer <vincent@kubermatic.com>
/assign @xrstf |
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.
/approve
/retest
LGTM label has been added. Git tree hash: f3153f47ab685a5b1a2be07797e3cb5acdd964d9
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vgramer, xrstf 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 |
What does this PR do / Why do we need it:
In some controllers we check if error is due to cache not started.
However since controller-runtime v0.8.1, the manager starts all caches before other Runnables kubernetes-sigs/controller-runtime#1327. Consequently, this check is not needed anymore.
This pr cleanup the controllers.
Special notes for your reviewer:
Documentation:
Does this PR introduce a user-facing change?: