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

Hardwire the XR Reconciler to use *composite.Unstructured #4614

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

negz
Copy link
Member

@negz negz commented Sep 13, 2023

Description of your changes

Previously we mostly accepted the resource.Composite interface, but in practice neither Composer that the Reconciler can use would work with any underlying type apart from *composite.Unstructured. Having the Composer interface require that type makes this explicit.

The PTComposer needs an unstructured type in order to fieldpath.Pave and patch it. The FunctionComposer needs and unstructured type in order to use server-side apply.

I have:

  • Read and followed Crossplane's contribution process.
  • Added or updated unit and E2E tests for my change.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR, if necessary.
  • Opened a PR updating the docs, if necessary.

Previously we mostly accepted the resource.Composite interface, but in
practice neither Composer that the Reconciler can use would work with
any underlying type apart from *composite.Unstructured. Having the
Composer interface require that type makes this explicit.

The PTComposer needs an unstructured type in order to fieldpath.Pave
and patch it. The FunctionComposer needs and unstructured type in order
to use server-side apply.

Signed-off-by: Nic Cope <nicc@rk0n.org>
@negz negz requested review from turkenh and a team as code owners September 13, 2023 20:58
@negz negz requested a review from ytsarev September 13, 2023 20:58
@phisco phisco merged commit 065a49e into crossplane:master Sep 14, 2023
16 of 17 checks passed
@negz negz deleted the specific branch September 15, 2023 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants