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

Support --force-conflicts option for kubectl Server-Side Apply #4639

Open
tetsuya28 opened this issue Oct 30, 2023 · 3 comments
Open

Support --force-conflicts option for kubectl Server-Side Apply #4639

tetsuya28 opened this issue Oct 30, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@tetsuya28
Copy link
Contributor

tetsuya28 commented Oct 30, 2023

What would you like to be added: Support --force-conflicts option for kubectl Server-Side Apply.

Why is this needed: When use a KubernetesApp, with PipeCD Server-Side Apply, a piped gets the error, Failed to apply manifest, for a resource that has applied with Client-Side Apply and has been modified.

Failed to apply manifest: name="XXX", kind="XXX", namespace="XXX", apiVersion="XXX" (%!w(*fmt.wrapError=&{failed to apply: error: Operation cannot be fulfilled on XXX "XXX": the object has been modified; please apply your changes to the latest version and try again
Please review the fields above--they currently have other managers. Here
are the ways you can resolve this warning:
* If you intend to manage all of these fields, please re-run the apply
  command with the `--force-conflicts` flag.
* If you do not intend to manage all of the fields, please edit your
  manifest to remove references to the fields that should keep their
  current managers.
* You may co-own fields by updating your manifest to match the existing
  value; in this case, you'll become the manager if the other manager(s)
  stop managing the field (remove it from their configuration).
See http://k8s.io/docs/reference/using-api/api-concepts/#conflicts
 (exit status 1) 0xc0260e7160}))
@hungran
Copy link
Contributor

hungran commented Nov 18, 2023

is this require a new label? or we can have under kubernetesdeploymentinput, I would Server-Side Apply also to be an option here
@khanhtc1202 @kentakozuka wdyt?

Copy link
Contributor

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 17, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 7 days with no activity. Feel free to reopen if still applicable.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
@khanhtc1202 khanhtc1202 reopened this May 24, 2024
@khanhtc1202 khanhtc1202 added the good first issue Good for newcomers label May 24, 2024
@t-kikuc t-kikuc removed the Stale label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants