* feat: support background propagation policy
Currently, Argo CD only supports foreground propagation policy ie. delete all the resources in the foreground and then delete the application in the end. This PR introduces a new flag `propagation-policy` to decide the type of policy when cascading is enabled. It also adds an annotation `propagation-policy.argocd.argoproj.io`, which is used by the application controller to decide the order of deletion.
Fixes: #5216
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* fix lint and doc errors
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* update logs to display the application name
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* address review comments
* remove application name from logs since it's already present
* update the propagation policy annotation key
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* Add radio buttons in the UI to select propagation policy
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* inject finalizers instead of annotations for specifying propagation policy
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* rebase branch on master
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* update the controller to set the policy only for application's resources
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* fix the label of policy radio button
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
* feat: get pod logs sequential
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: check in the md file
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: get pod logs
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix conflicts
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: added timeout for test
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: update doc
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: update test
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: add unit test
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: add unit test
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix merge conflict
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: add e2e test
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: clone query
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: rename tail-lines to tail
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix when to send last message status
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: retry on the client side
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: fix lint error
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: if --follow, keep retry
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: added two more flags for CLI
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: added two more flags for CLI
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: added two more flags for CLI
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: added two more flags for CLI
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: error return when there are more than 10 pods to render.
Signed-off-by: May Zhang <may_zhang@intuit.com>
* feat: if podname is present, use the same flow as if query by resource kind
Signed-off-by: May Zhang <may_zhang@intuit.com>
* fix: controller should load application related nodes from target cluster
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
* fix: make sure node capasity and pod requests are in same unit, improve unit formatting
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
* fix: application hosts should include info about resources requested by app neighbors
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
* apply reviewer notes
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
* feat: adding disable-validation for app create and app set
* feat: adding disable-validation for app create and app set
* feat: change test func name
* feat: added support of app unset and app edit in addition to app create and app set.
* feat: remove extra space.
* Add maintenance windows for applications, configured at the project level
* move maintenance window check out of autoSync(), fix imports and error checking
* fix ui lint
* add some more tests for maintenance
* patch after pre-commit
* Add more tests for maintenance windows
* Remove Dockerfile as it was added by mistake
* Deprecate componentParameterOverrides in favor of source specific config
* Support rollback when application source changes
* Removes the legacy spec.source.environment and spec.source.valuesFiles which were deprecated in v0.11
* Fix issue where argocd app create APPNAME --file didn't fail when there were name conflicts
* Fix issue where auto-sync and app deletion would cause infighting
* Expand SyncOperation to also store parameter overrides
Fix auto-sync when used with parameter overrides
* Add more event sources and provide better detail in event messages (issue #635)