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

Out of Sync on Argo CD Server Side Apply for existing resource. #10740

Closed
3 tasks done
iam-veeramalla opened this issue Sep 29, 2022 · 3 comments
Closed
3 tasks done

Out of Sync on Argo CD Server Side Apply for existing resource. #10740

iam-veeramalla opened this issue Sep 29, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@iam-veeramalla
Copy link
Member

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug
I was testing the Argo CD Server Side Apply feature by building Argo CD from master.

I used the Argo CD SSA on an existing resource on the cluster and noticed that Argo CD was able to apply the configuration using serverside but the application stays out-of-sync.

The same configuration is well synced without ServerSideApply.

To Reproduce

  1. Build Argo CD from master or use the Argo CD Image below.
    docker.io/abhishekf5/argocd:testing-ssa:sha256:ac5d7b74e71eb6453944d564e1b5f056a4f3d8c4447141cde0e9f540a7115afc
  2. Create a simple nginx resource on your namespace WITHOUT Argo CD.
    kubectl create deploy nginx --image=nginx
    and label the resource
    kubectl label deploy nginx foo1=bar1 foo2=bar2
  3. Create an Argo CD application which points to the nginx deployment yaml. You can use the application yaml as shown below.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: test
  namespace: default
spec:
  destination:
    namespace: default
    server: https://kubernetes.default.svc
  project: default
  source:
    path: ssa
    repoURL: https://github.com/iam-veeramalla/demo-repo
    targetRevision: HEAD
  syncPolicy:
    syncOptions:
    - ServerSideApply=true

Please refer to the screenshots section for more information.

Expected behavior
Application should not be out-of-sync.

Screenshots
Screenshot 2022-09-29 at 6 14 54 PM
Screenshot 2022-09-29 at 6 15 15 PM

@iam-veeramalla iam-veeramalla added the bug Something isn't working label Sep 29, 2022
@ashutosh16
Copy link
Contributor

ashutosh16 commented Sep 29, 2022

Fix is proposed in the gitops-engine PR : gitops-engine/pull/467. Similar issue is report earlier in argo-cd/issues/10627

@iam-veeramalla
Copy link
Member Author

Thanks @ashutosh16

@leoluz
Copy link
Collaborator

leoluz commented Sep 29, 2022

@iam-veeramalla tks for the detailed issue.
I am closing it as this bug is already being tracked in: #10627
It would be great if you could give it a try once we merge the gitops-engine PR and update Argo CD master with it.

@leoluz leoluz closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants