app sync --timeout x
and app get --refresh
hangs forever if application spec is invalid
#21613
Labels
bug
Something isn't working
component:cli
Affects the Argo CD CLI
good first issue
Good for newcomers
Describe the bug
When an existing Application has an invalid spec that cannot be reconciled anymore, the
argocd.argoproj.io/refresh: normal
annotations will not be removed by the controller. This causes the get command to never return. Since this get is used without context timeout in sync and get command, the command hangs forever.To Reproduce
(fixed) Modify the app so it is invalid (remove the cluster, change permissions)app sync --timeout 5
Or with
app get --refresh
The return condition for the get is never met:
argo-cd/server/application/application.go
Lines 793 to 808 in 5ef4faa
Expected behavior
The Controller should remove the refresh annotation when the reconciliation resulted in the application being invalid.Version
The text was updated successfully, but these errors were encountered: