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

feat: use status resources for controller reconciliation. Closes #1029 #1030

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Jan 22, 2021

Signed-off-by: Derek Wang whynowy@gmail.com

Checklist:

Closes #1029

This PR:

  1. Enabled status subresource for CRDs, and controllers use status update API to update object status;
  2. Controllers do not watch status change any more;
  3. Fixed a bug that it kept emitting UPDATE notifications and updating status field infinitely.
  4. Some code refactory and enhancement.

Signed-off-by: Derek Wang <whynowy@gmail.com>
Signed-off-by: Derek Wang <whynowy@gmail.com>
@whynowy whynowy requested review from VaibhavPage and alexec January 22, 2021 08:20
@alexec
Copy link
Contributor

alexec commented Jan 22, 2021

How do we test this please?

@whynowy
Copy link
Member Author

whynowy commented Jan 22, 2021

Here is the data about reconciliation times and workqueue adding times after applying an EventSource object.

Before, it means it kept enqueuing and reconciling even there was only one EventSource object, which is a bug.
u01
u02

After:
u03
u04

@whynowy
Copy link
Member Author

whynowy commented Jan 22, 2021

How do we test this please?

How do we test this please?

We should get some e2e test into the project, I can work on this later. For now, I had to test manually.

@whynowy whynowy merged commit 74b9fc2 into argoproj:master Jan 22, 2021
@whynowy whynowy deleted the subresources branch January 22, 2021 20:32
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
…proj#1029 (argoproj#1030)

* feat: use status resources for controller reconciliation

Signed-off-by: Derek Wang <whynowy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update status subresource in controller reconciliation
2 participants