applicationset icon indicating copy to clipboard operation
applicationset copied to clipboard

Possible to disable autosync from the ArgoCD GUI when using ApplicationSet?

Open rayterrill opened this issue 3 years ago • 8 comments
trafficstars

Is it possible to disable autosync from the ArgoCD GUI (for troubleshooting, etc) when using ApplicationSet? We've observed when apps have been migrated to use ApplicationSet vs Application, the ArgoCD GUI button to disable AutoSync no longer works - you can click it, but it just spins and then goes back to the default setting.

As a workaround, we can push a PR to disable autosync, but it would be nice if we could do this from the GUI for troubleshooting purposes.

rayterrill avatar Nov 24 '21 20:11 rayterrill

Hi @rayterrill , this is discussed here: https://argocd-applicationset.readthedocs.io/en/stable/Controlling-Resource-Modification

jgwest avatar Dec 06 '21 17:12 jgwest

I wonder if allowing something like this would solve this problem?

https://www.pulumi.com/docs/intro/concepts/resources/#ignorechanges

https://www.terraform.io/docs/language/meta-arguments/lifecycle.html#ignore_changes


basically what you are saying, is very similar, in that I want to deploy something, with an initial state, but there's another external process that's going to be modifying this over time. Don't revert those changes next time you sync.

This is also similar to the desired behavior of the usage of an HPA and the replicas field of a deployment.

ghostsquad avatar Dec 10 '21 17:12 ghostsquad

Generally we only use this temporarily - like we want to stop the sync process, make some manual changes to test something out of debug something, then we'll turn sync back on. Our "gold state" is synced - but we need the ability to disable that temporarily (for now, I reverted much of what I had converted to ApplicationSet to give us back this capability but I'd love to get it back into AppSet).

I believe we could in a pinch delete the ApplicationSet and intentionally "orphan" the Applications, then put the AppSet back when we're done - I actually used this to do some moving around of our resources - but something more user-friendly would be awesome for our devs.

rayterrill avatar Dec 10 '21 18:12 rayterrill

I also went away from appsets for this reason

qxmips avatar Jun 01 '22 00:06 qxmips

Hello there,

We're interested also for a solution regarding this enhancement, any updates ?

ludopaquet avatar Apr 04 '23 15:04 ludopaquet

We are also interested in this.

jserpapinto avatar May 09 '23 10:05 jserpapinto

Just came across this issue as well. This is a rather glaring omission IMO, the UX is rather broken when attempting to pause sync via the UI. Also related - different apps in the appset should be able to set different sync settings

nadaverell avatar Jun 12 '23 07:06 nadaverell

i tried to use annotation to prevent sync temporarily at version 2.7.2, but unfortunately it doesn't work

    argocd.argoproj.io/skip-reconcile: "true"``

vl-kp avatar Jun 14 '23 03:06 vl-kp