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

Allow ResourceReconciler to skip status updates #360

Merged
merged 1 commit into from Apr 20, 2023

Conversation

scothis
Copy link
Contributor

@scothis scothis commented Apr 20, 2023

Typically only a single controller should process a given resource. If multiple controllers are updating the status, they can fight over who controls the status.

SkipStatusUpdate is a flag for ResourceReconciler that allows a reconciler to augment another controller without conflicting with the primary resource. This means that any errors or success state will not appear on the resource, this state will need to be communicated via other means, like logs and events.

Finalizers may still be set, but requires the other controller(s) to be accommodating of foreign finalizers.

Typically only a single controller should process a given resource. If
multiple controllers are updating the status, they can fight over who
controls the status.

SkipStatusUpdate is a flag for ResourceReconciler that allows a
reconciler to augment another controller without conflicting with the
primary resource. This means that any errors or success state will not
appear on the resource, this state will need to be communicated via
other means, like logs and events.

Finalizers may still be set, but requires the other controller(s) to be
accommodating of foreign finalizers.

Signed-off-by: Scott Andrews <andrewssc@vmware.com>
@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.04 🎉

Comparison is base (c1998cb) 58.08% compared to head (53a06b4) 58.12%.

❗ Current head 53a06b4 differs from pull request most recent head 6760272. Consider uploading reports for the commit 6760272 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #360      +/-   ##
==========================================
+ Coverage   58.08%   58.12%   +0.04%     
==========================================
  Files          14       14              
  Lines        1954     1956       +2     
==========================================
+ Hits         1135     1137       +2     
  Misses        741      741              
  Partials       78       78              
Impacted Files Coverage Δ
reconcilers/reconcilers.go 75.75% <100.00%> (+0.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@scothis scothis merged commit 492f3d0 into vmware-labs:main Apr 20, 2023
4 checks passed
@scothis scothis deleted the read-only branch April 20, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants