argo-cd/ui
Chetan Banavikalmutt b728505c9f
feat: support background propagation policy while deleting applications (#5216) (#5524)
* 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>
2021-03-15 17:27:41 +01:00
..
__mocks__ Adds support for testing .tsx files. Closes #2610 (#2661) 2019-11-07 14:50:52 -08:00
scripts Moves UI code into ui/ (#129) 2019-06-04 14:47:28 -07:00
src feat: support background propagation policy while deleting applications (#5216) (#5524) 2021-03-15 17:27:41 +01:00
.babelrc Fixes the failing CI master build (#2697) 2019-11-12 16:10:35 -08:00
.dockerignore Moves UI code into ui/ (#129) 2019-06-04 14:47:28 -07:00
.gitignore Fixes the failing CI master build (#2697) 2019-11-12 16:10:35 -08:00
.jshintrc Moves UI code into ui/ (#129) 2019-06-04 14:47:28 -07:00
.nvmrc refactor: upgrade dependencies and node version (#4461) 2020-09-30 23:02:48 -07:00
.prettierrc Execute application label filtering on client side (#2605) 2019-10-30 18:42:04 -07:00
babel.config.js Adds support for testing .tsx files. Closes #2610 (#2661) 2019-11-07 14:50:52 -08:00
jest.config.js Adds support for testing .tsx files. Closes #2610 (#2661) 2019-11-07 14:50:52 -08:00
LICENSE Moves UI code into ui/ (#129) 2019-06-04 14:47:28 -07:00
package.json fix: ui/package.json & ui/yarn.lock to reduce vulnerabilities (#5239) 2021-01-21 17:06:11 -08:00
README.md fix broken url and resize it (#3145) 2020-02-26 14:18:41 -08:00
tsconfig.json Adds support for testing .tsx files. Closes #2610 (#2661) 2019-11-07 14:50:52 -08:00
tslint.json fix: sync repository certificates UI with other pages(#4609) (#4971) 2020-12-07 23:30:29 -08:00
yarn.lock chore(deps): bump prismjs from 1.22.0 to 1.23.0 in /ui (#5648) 2021-03-09 11:44:21 -08:00

Argo CD UI

Argo Image

Web UI for Argo CD.

Getting started

  1. Install NodeJS and Yarn. On macOS with Homebrew, running brew install node yarn will accomplish this.
  2. Run yarn install to install local prerequisites.
  3. Run yarn start to launch the webpack dev UI server.
  4. Run yarn build to bundle static resources into the ./dist directory.

To build a Docker image, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest yarn docker.

To do the same and push to a Docker registry, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest DOCKER_PUSH=true yarn docker.

Pre-commit Checks

Make sure your code passes the lint checks:

yarn lint --fix