Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Allow ResourceReconciler to skip status updates#360

Merged
scothis merged 1 commit intovmware-labs:mainfrom
scothis:read-only
Apr 20, 2023
Merged

Allow ResourceReconciler to skip status updates#360
scothis merged 1 commit intovmware-labs:mainfrom
scothis:read-only

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
@scothis scothis deleted the read-only branch April 20, 2023 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants