Replies: 2 comments 3 replies
-
From what you described, it seems that we can consider this as a bug. In my view, a dry-run sync shouldn't impact the app state. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Closed in favor of #21899 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I’d like to hear your thoughts.
Currently, executing the command
argocd app sync --dry-run
affects both the application’s state and the internal metrics exposed by ArgoCD (eg:argocd_app_info
).The main issue is that if there are alerts based on these metrics, and the dry-run execution identifies an error (e.g., a change that violates a Kyverno policy or an invalid CRD schema), the application state changes to
SyncErr
. This also updates the metrics, which can potentially trigger alerts based on these metrics.For example:
Since the definition of a
dry-run
is to execute requests without persistence, I wonder if it makes sense to handle it in a way that ensures no changes are made.Alternatively, adding a dry_run label to differentiate operational requests from dry-run requests could also be an option (a similar change has been proposed for kyverno link).
What do you think? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions