Skip to content
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

✨ Manager: Start all caches before other Runnables #1327

Merged
merged 1 commit into from Jan 21, 2021

Conversation

alvaroaleman
Copy link
Member

This pr implements the second half of the "Move cluster-specific code
out of the manager" proposal
: Making it start all caches before other
Runnables and not just the one of the main Cluster.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 11, 2021
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 11, 2021
@alvaroaleman
Copy link
Member Author

/retest

This pr implements the second half of the ["Move cluster-specific code
out of the manager" proposal][0]: Making it start all caches before other
Runnables and not just the one of the main Cluster.

[0]: https://github.com/kubernetes-sigs/controller-runtime/blob/66537ca5b7439b06f2f3b08901640f934834c9a1/designs/move-cluster-specific-code-out-of-manager.md#L131-L132
@alvaroaleman
Copy link
Member Author

/assign @vincepri

Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm
/milestone v0.8.x

@k8s-ci-robot k8s-ci-robot added this to the v0.8.x milestone Jan 21, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 21, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, vincepri

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:
  • OWNERS [alvaroaleman,vincepri]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This was referenced Mar 15, 2021
vgramer added a commit to vgramer/kubermatic that referenced this pull request Mar 1, 2022
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>
kubermatic-bot pushed a commit to kubermatic/kubermatic that referenced this pull request Mar 1, 2022
… controllers (#9168)

* remove function util.IsCacheNotStarted

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>

* master-controller-manager/usersshkeyssynchronizer/controller.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>

* master-controller-manager/project-label-synchronizer/project_label_synchronizer.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>

* master-controller-manager/master-constraint-template-controller/controller.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>

* master-controller-manager/master-constraint-controller/controller.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>

* master-controller-manager/cluster-template-synchronizer/controller.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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants