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

Add a Server-Side Applicator #358

Closed
wants to merge 3 commits into from
Closed

Conversation

muvaf
Copy link
Member

@muvaf muvaf commented Sep 28, 2022

Description of your changes

Adds the ability to utilize server-side apply mechanism by providers and core Crossplane. Unfortunately, ApplyOption argument is not relevant for this method since there is no fetching of an existing object. However, there are some patching options that users may want to set per-call, especially the owner. Initially, it was part of NewAPIServerSideApplicator function but that'd force you to use single owner for many calls, i.e. we'd have to use composite as owner for all managed resources. Now, we can actually use the composite name, which would be more accurate and helpful for debugging purposes.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Unit tests and basic usage test. I'll expand this section with more usage in composition.

@muvaf muvaf marked this pull request as ready for review October 11, 2022 11:51
@muvaf muvaf changed the title resource: add an applicator that uses server-side apply under the hood Add a Server-Side Applicator Oct 11, 2022
@muvaf muvaf requested review from negz and turkenh October 11, 2022 11:53
@blakebarnett
Copy link

It looks like this is mostly ready to use, what else would be needed to start having providers take advantage of it? Maybe a --enable-server-side-apply option?

@negz
Copy link
Member

negz commented Sep 11, 2023

I'm going to close this. We are still investigating this avenue per crossplane/crossplane#4047, but @muvaf hasn't touched this PR in a while and is no longer working on Crossplane full-time so I don't think we're likely to get this implementation merged.

@negz negz closed this Sep 11, 2023
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.

3 participants