-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Argocd Application does not pick the changes in its own annotations/labels and sync options. #19563
Comments
Hi Arun, thanks for raising the issue.
Argo CD will be monitoring your GitHub Repository where your application manifests have been deployed. If your Argo CD manifest is not getting monitored by the Argo CD, you can use the I'd recommend using Let me know if it makes sense to you. |
@nitishfy - My k8s manifest like deploy, svc etc, are present inside the folder nginx and my Argocd Application is present in the root directory of the repo. So you mean to say since my argocd application manifest is configured to monitor nginx folder, it does not pick the changes made to argocd app manifest. Is that right ? I will try adding root directory in the path and revert back if the issue persist, thanks for replying. |
yep, try adding the manifest in the path which Argo CD is monitoring and then check if a resource of kind Application gets created. |
@ArunKumarT1995 did you try this? If you are facing any doubts, don't hesitate to reach out to us on slack. Are we good enough to close this issue? |
@nitishfy - sorry for late reply, I did try adding root directory in the path but the application nginx is creating another application nginx inside it (state is out of sync always) which is not what I was looking for. My expectation is, change the application/applicationset annotation and I should be able to see the changes in argocd UI. I need this feature because based on few annotation, I would send notification to certain email id. The value of the annotation is mutable and I want to make sure only change in git should change the configuration and no manual intervention. If this feature is not available, I think this will be good feature request. What do you think ? |
can you share your application manifest? |
@nitishfy - PFB the screenshot for app manifest. Below is the Screenshot from UI |
Please correct me if i am wrong - Suppose you remove an annotation from the application manifest and apply the changes, you mean that the argo cd does not get in sync with the git repository although the status in the UI shows as Synced. Correct? |
No. I dont want to do kubectl apply whenever I make changes in application manifest annotation. I would rather expect argocd to pick it from git commit as part of sync operation. |
@nitishfy - any update ? is this possible with git commit ? or can this be added as feature request ? |
Checklist:
argocd version
.Describe the bug
Below are the 2 issues I face,
Attached below screenshot.
NOTE : The annotations are only created when the very first deployment of the application itself afterwards we have manually add the annotations in the application.
To Reproduce
Deploy a sample argocd application for your first deployment. Then add a new annotations/labels in the application and push it to the repository. Argocd application will get synced to the latest commit but annotation/labels wont be added.
Same goes for syncOption.
Expected behavior
Screenshots
Annotation change in Argocd Application is not getting updated in the argo application.
Sync Options changes not getting updated in the argo application.
Version
The text was updated successfully, but these errors were encountered: