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

🌱 Simplify heartbeat controller #2691

Merged
merged 3 commits into from
Mar 7, 2023

Conversation

csams
Copy link
Contributor

@csams csams commented Jan 27, 2023

Summary

  • Remove the base controller as it was only used by the heartbeat controller
  • Collapse the base controller into the heartbeat controller
  • Simplify the heartbeat controller code and structure
  • Update the heartbeat controller to use the committer package.

Signed-off-by: Christopher Sams csams@redhat.com

Related issue(s)

#2635

@openshift-ci openshift-ci bot requested review from davidfestal and sttts January 27, 2023 01:50
@stevekuznetsov
Copy link
Contributor

/lgtm
/approve
/retest

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 27, 2023
@ncdc
Copy link
Member

ncdc commented Feb 1, 2023

/retest

2 similar comments
@ncdc
Copy link
Member

ncdc commented Feb 2, 2023

/retest

@sttts
Copy link
Member

sttts commented Feb 3, 2023

/retest

@sttts
Copy link
Member

sttts commented Feb 3, 2023

This base controller has only one consumer. Why do we have it as separate package?

@ncdc
Copy link
Member

ncdc commented Mar 6, 2023

If I had to guess, we probably kept moving consumers away until we were only left with 1, but never collapsed. I'll do that.

csams and others added 2 commits March 6, 2023 12:53
Update the basecontroller/controller to use the committer package.

Signed-off-by: Christopher Sams <csams@redhat.com>
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
@ncdc ncdc force-pushed the basecontroller-committer branch from 3f64c4e to a4ff474 Compare March 6, 2023 19:06
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2023
@ncdc ncdc changed the title 🌱 basecontroller uses committer 🌱 Simplify heartbeat controller Mar 6, 2023
@ncdc
Copy link
Member

ncdc commented Mar 6, 2023

Took this over from Chris (as per Slack conversation). Did some cleanup so this will need 👀

@ncdc ncdc force-pushed the basecontroller-committer branch 2 times, most recently from ca310cd to 966342b Compare March 6, 2023 19:40
Remove base controller as it only had 1 user, the heartbeat controller.

Simplify the heartbeat controller code and structure.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
@ncdc ncdc force-pushed the basecontroller-committer branch from 966342b to 5410996 Compare March 6, 2023 19:45
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stevekuznetsov

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit b424d59 into kcp-dev:main Mar 7, 2023
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants