-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
None
-
None
-
13
-
False
-
None
-
False
-
-
-
GitOps Tangerine - Sprint 3258
Description of problem:
GitHub Issue: https://github.com/argoproj/argo-cd/issues/17882
server-side-apply doesn't merge but replaces live manifest in openshift-gitops argocd
On ArgoCD v2.6.7 ServerSideApply merges the values from the patch-file to the existing Kiali manifest.
In newer versions for example ArgoCD v2.10.5 and v2.11 the diff shows the expected merged result. But after syncing with ServerSideApply enabled, all the content from the existing manifest is deleted and the result is only the content of the patch instead of being merged together.
So the diff preview and the resulting manifest are differing and the result is a defective manifest.
The problem is also reproducible outside of OpenShift for example with Podman Desktop with the upstream ArgoCD version.
The problem is only happening if the manifest, which should be changed was created before by "kubectl apply". If it was created by "kubectl create" the problem doesn't happen. So ArgoCD seems to have problems with the existing annotation: "kubectl.kubernetes.io/last-applied-configuration", if server side apply is used.
Workaround:
No
Prerequisites (if any, like setup, operators/versions):
GitOps Operator version is 1.12.2
OpenShift version is 4.12.53.
Steps to Reproduce
https://github.com/argoproj/argo-cd/issues/17882
Actual results:
https://github.com/argoproj/argo-cd/issues/17882
Expected results:
https://github.com/argoproj/argo-cd/issues/17882
Reproducibility (Always/Intermittent/Only Once):
Always
Acceptance criteria:
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):
*