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 ChildReconciler to manage resource in other namespaces #236

Merged
merged 1 commit into from May 13, 2022

Conversation

scothis
Copy link
Contributor

@scothis scothis commented May 13, 2022

When listing candidate children, by default we limit the listing to
resources in the same namespace as the parent for efficiency. Now a
ChildReconciler may use the ListOptions method to return a custom set of
[]ListOption. This may use any list options available within controller
runtime, including indexed fields.

When used in conjunction with finalizers and WithConfig we should be
able to manage child resources in other clusters (needs verification).

Signed-off-by: Scott Andrews andrewssc@vmware.com

When listing candidate children, by default we limit the listing to
resources in the same namespace as the parent for efficiency. Now a
ChildReconciler may use the ListOptions method to return a custom set of
[]ListOption. This may use any list options available within controller
runtime, including indexed fields.

When used in conjunction with finalizers and WithConfig we should be
able to manage child resources in other clusters (needs verification).

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

codecov bot commented May 13, 2022

Codecov Report

Merging #236 (a7ec128) into main (eed91e0) will increase coverage by 0.50%.
The diff coverage is 100.00%.

❗ Current head a7ec128 differs from pull request most recent head 1923c58. Consider uploading reports for the commit 1923c58 to get more accurate results

@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
+ Coverage   65.83%   66.34%   +0.50%     
==========================================
  Files           9        9              
  Lines        1127     1144      +17     
==========================================
+ Hits          742      759      +17     
  Misses        360      360              
  Partials       25       25              
Impacted Files Coverage Δ
reconcilers/reconcilers.go 81.29% <100.00%> (+0.40%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eed91e0...1923c58. Read the comment docs.

@scothis scothis merged commit ed9214d into vmware-labs:main May 13, 2022
@scothis scothis deleted the list-opts branch May 13, 2022 19:28
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