-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
When ServerSideDiff is enabled, modifying a service or container port number results in "duplicate" error. Diff cannot complete. #17717
Comments
Just for FYI, Force and Replace did not fix the issue in ArgoCD. I had to manually delete the service in Kubernetes. Not a possibility for production systems. |
This also happens when changing the port name, not the number |
Verified having this issue. Moreover, deleting the 'conflicting' object is only a 1 time fix. It continues to happen on every sync. |
Confirming that I was able to reproduce this issue as well on version 2.12.3, a fix will be beneficial |
Same here, I was about to update Immich on my server, they changed the port number. Instead of replacing the I also have the same issue for a Deployment's container's |
ArgoCD versions 2.10 and below have reached EOL. Can you upgrade and tell us if the issue is still present, please? |
@andrii-korotkov-verkada |
@andrii-korotkov-verkada Still not working in 2.14.2. In my case it seems to be caused by the traefik/traefik-helm-chart#1239, which has changed the default port.
(For others) The workaround is to temporarily change |
Checklist:
argocd version
.Describe the bug
When ServerSideDiff BETA is enabled, changing the pod or service port number without changing the name of the port results in an error stating duplicate "port name". The expected behavior would be that the port is overwritten by apply.
To Reproduce
Deploy a pod and service with ArgoCD, enable ServerSideDiff beta for ArgoCD. Then try and change just the port number for the service + container without changing the name of the port/service.
Expected behavior
ArgoCD should rewrite the Pod/Container and Service with the updated pod number.
Version
argocd: v2.10.4+f5d63a5.dirty
BuildDate: 2024-03-18T09:28:41Z
GitCommit: f5d63a5
GitTreeState: dirty
GoVersion: go1.22.1
Compiler: gc
Platform: darwin/arm64
argocd-server: v2.10.5+335875d
BuildDate: 2024-03-28T15:02:45Z
GitCommit: 335875d
GitTreeState: clean
GoVersion: go1.21.3
Compiler: gc
Platform: linux/amd64
Kustomize Version: v5.2.1 2023-10-19T20:13:51Z
Helm Version: v3.14.3+gf03cc04
Kubectl Version: v0.26.11
Jsonnet Version: v0.20.0
Screenshots

Logs
The text was updated successfully, but these errors were encountered: