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

Handle pointer items in ObjectList with ChildReconciler #480

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Handle pointer items in ObjectList with ChildReconciler #480

merged 2 commits into from
Feb 19, 2024

Conversation

scothis
Copy link
Contributor

@scothis scothis commented Feb 13, 2024

Canonically, Items in an ObjectList are a slice of structs. Some types, like Istio, use a slice of pointers intead. We now detect and handle both.

Resolves #479

Canonically, Items in an ObjectList are a slice of structs. Some types,
like Istio, use a slice of pointers intead. We now detect and handle
both.

Signed-off-by: Scott Andrews <scott@andrews.me>
@vmwclabot
Copy link

@scothis, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e22ffba) 60.67% compared to head (23afd45) 61.02%.
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
+ Coverage   60.67%   61.02%   +0.34%     
==========================================
  Files          26       27       +1     
  Lines        2543     2581      +38     
==========================================
+ Hits         1543     1575      +32     
- Misses        911      917       +6     
  Partials       89       89              

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

@vmwclabot
Copy link

@scothis, we have received your signed contributor license agreement. The review is usually completed within a week, but may take longer under certain circumstances. Another comment will be added to the pull request to notify you when the merge can proceed.

@scothis
Copy link
Contributor Author

scothis commented Feb 13, 2024

@neowulf can you give this branch a try?

@mamachanko
Copy link
Collaborator

@neowulf can you give this branch a try?

Because personally I can never recall the correct incantation, this may help:

go mod edit -replace github.com/vmware-labs/reconciler-runtime=github.com/scothis/reconciler-runtime@object-list-pointer
go mod tidy

Signed-off-by: Scott Andrews <scott@andrews.me>
@neowulf
Copy link

neowulf commented Feb 14, 2024

Thank you for the quick response! Yes, this patch works!

@mamachanko mamachanko merged commit 07e174c into vmware-labs:main Feb 19, 2024
3 checks passed
@vmwclabot
Copy link

@scothis, VMware has approved your signed contributor license agreement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reconciler during runtime causes a panic
4 participants