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

Allow ChildReconciler to stash in ReflectChildStatusOnParent #363

Merged
merged 1 commit into from
Apr 29, 2023
Merged

Allow ChildReconciler to stash in ReflectChildStatusOnParent #363

merged 1 commit into from
Apr 29, 2023

Conversation

scothis
Copy link
Contributor

@scothis scothis commented Apr 28, 2023

ChildReconciler#ReflectChildStatusOnParent now accepts a context object so the values from the child resource can be stashed for subsequent reconcilers. This is common when the child needs to be referenced by another resource, but it is also not desired to expose the child directly on the parent resource.

This is a breaking change, although it is easy to adapt to.

ChildReconciler#ReflectChildStatusOnParent now accepts a context object
so the values from the child resource can be stashed for subsequent
reconcilers. This is common when the child needs to be referenced by
another resource, but it is also not desired to expose the child
directly on the parent resource.

This is a breaking change, although it is easy to adapt to.

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

codecov bot commented Apr 28, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (d3c6f93) 58.12% compared to head (7cc3437) 58.12%.

❗ Current head 7cc3437 differs from pull request most recent head 214e40e. Consider uploading reports for the commit 214e40e to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #363   +/-   ##
=======================================
  Coverage   58.12%   58.12%           
=======================================
  Files          14       14           
  Lines        1956     1956           
=======================================
  Hits         1137     1137           
  Misses        741      741           
  Partials       78       78           
Impacted Files Coverage Δ
reconcilers/reconcilers.go 75.75% <100.00%> (ø)

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

Copy link
Collaborator

@mamachanko mamachanko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the swift turnaround!

@scothis scothis merged commit 8b020f7 into vmware-labs:main Apr 29, 2023
@scothis scothis deleted the child-status-stash branch April 29, 2023 17:58
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