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

ChildSetReconciler as a dynamic composition of ChildReconcilers#396

Merged
scothis merged 2 commits intovmware-labs:mainfrom
scothis:child-set-sketch
Jul 28, 2023
Merged

ChildSetReconciler as a dynamic composition of ChildReconcilers#396
scothis merged 2 commits intovmware-labs:mainfrom
scothis:child-set-sketch

Conversation

@scothis
Copy link
Contributor

@scothis scothis commented Jul 25, 2023

Applying the concepts from #382 by composing existing reconcilers.

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Patch coverage: 89.15% and project coverage change: +1.84% 🎉

Comparison is base (ad96ae3) 59.52% compared to head (64739a1) 61.36%.

❗ Current head 64739a1 differs from pull request most recent head 3d4a299. Consider uploading reports for the commit 3d4a299 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #396      +/-   ##
==========================================
+ Coverage   59.52%   61.36%   +1.84%     
==========================================
  Files          16       17       +1     
  Lines        2127     2275     +148     
==========================================
+ Hits         1266     1396     +130     
- Misses        780      796      +16     
- Partials       81       83       +2     
Files Changed Coverage Δ
reconcilers/childset.go 87.87% <87.87%> (ø)
reconcilers/reconcilers.go 75.96% <91.66%> (+0.04%) ⬆️
reconcilers/stash.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@scothis scothis marked this pull request as ready for review July 27, 2023 16:10
@scothis scothis requested a review from LittleBaiBai July 27, 2023 16:10
@scothis scothis changed the title ChildSetReconciler sketch ChildSetReconciler as a dynamic composition of ChildReconcilers Jul 27, 2023
Delegates to dynamically created ChildReconcilers where the real
business logic lives. Desired child resources defined by the reconciler
based on the reconciled resource along with existing child resources
discovered from the K8s API are combined where each is processed by a
ChildReconciler.

Signed-off-by: Scott Andrews <andrewssc@vmware.com>
Co-authored-by: Bella Bai <bellab@vmware.com>
Signed-off-by: Scott Andrews <andrewssc@vmware.com>
@scothis scothis requested a review from LittleBaiBai July 28, 2023 16:29
@scothis scothis merged commit 632ae60 into vmware-labs:main Jul 28, 2023
@scothis
Copy link
Contributor Author

scothis commented Jul 28, 2023

Thanks for helping drive this @LittleBaiBai

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.

3 participants