-
Notifications
You must be signed in to change notification settings - Fork 159
feat: Adopt-or-Create #179
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
base: main
Are you sure you want to change the base?
feat: Adopt-or-Create #179
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: michaelhtm The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Allow users to create the resource if adoption fails due to a `NotFound` error. With these changes, we are expecting users to populate all the necessary fields for creation in the reosurce spec, and the status fileds in the `adoption-fields` annotation
efde0ab
to
2163f84
Compare
Hi @michaelhtm! Quick question -- will this overwrite the entire Kubernetes manifest if it's able to adopt an existing resource? From the code I'm seeing, it seems like that's the case. In my case, I would like to avoid that if possible. Overwriting the manifest from the adopted resource means I have to hit "sync" again for my argo app. Really, I just want to upsert my resource to match my ACK spec. While I think overwriting the whole thing does seem like a valid use case, maybe it's possible to support both cases? Might be looking at a separate adoption policy of "upsert" or something like that? |
@gfaraj Hello, The entire manifest would be replaced with the spec defined in AWS if the |
@michaelhtm oh nice, thanks for confirming that, I may have misread part of the changes. Yeah then this seems more like an "upsert" -- maybe that should be the policy name instead? |
2310560
to
8bf6a25
Compare
@michaelhtm: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Issue #2406
Description of changes:
Allow users to create the resource if adoption fails due to a
NotFound
error. With these changes, we are expectingusers to populate all the necessary fields for creation in the
resource spec, and the status fields in the
adoption-fields
annotation
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.