-
Notifications
You must be signed in to change notification settings - Fork 159
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
Support supplying flags like Prune in the app updater when requesting a sync from ArgoCD #2984
Comments
Prune seems like a sensible option to expose. If there are others you feel would be especially useful, please enumerate. I don't want to blindly expose all options, as my gut says not all of them make sense in the context of Kargo. Prune, at least, is absolutely doable. |
There also can be Replace, Force, Dry Run. Regarding Replace, there's this proposal argoproj/argo-cd#20730, that would be discussed soon. |
Rather than exposing any of these as options in the Is there any reason that the options used by cc @jessesuen for input. |
Actually, I already assumed we were doing that, so we should make that change. I believe Argo CD auto-sync will pick up the applications preferences when creating the operation, so we can copy that logic. |
Sync flags might be good to support in the
I believe because sync options are just generic string, we just need to support a string field and pass it on. There would be no upkeep of supporting more and more options. |
I thought there were, perhaps, things we ought to be copying but weren't but I just double-checked and we are already copying all sync options. So @andrii-korotkov-verkada, if you have specific sync options set on the App, Kargo will already use them.
I agree, especially if it's this straightforward. Thanks @jessesuen. |
Checklist
kargo version
, if applicable.Proposed Feature
ArgoCD can pass extra options to sync, e.g. Prune https://github.com/argoproj/argo-cd/blob/32cc6638f78e15652c24eb2cd6403e6e7ec26ab0/server/application/application.go#L1971. Kargo doesn't set Prune, yet sets SyncOptions
kargo/internal/directives/argocd_updater.go
Lines 511 to 528 in cc293f0
Motivation
Parity with ArgoCD sync.
Suggested Implementation
Surface Prune checkbox in UI if not already, then pass the flag to the sync field in the operation.
The text was updated successfully, but these errors were encountered: