Argo-cd: Improvements to resource actions

Created on 21 Aug 2019  路  3Comments  路  Source: argoproj/argo-cd

Features needed around application resource actions:

  1. we need a way to list all actions regardless if they are applicable or not. In other words, I should be able to run:
argocd app actions list

and it should show me all actions configured in the system.

Group/kind should be added as columns and the --kind and --group flags would become optional (today they are required).

  1. Invoking application actions should not consult the discovery script

Currently when running an action, a check is made to see if the object is in a state where the action is listed by the discovery script. This check is probably not necessary and may get in the way of idempotent scripting.

  1. We need a UI feature and action field which indicates whether or not an action is currently applicable.

This is actually the current behavior of actions today, but in order to support use case (1), we need the UI to examine a different field to decide whether or not to present it or not.

core enhancement usability

Most helpful comment

Resource actions should also be documented (no mention of them in current documentation).

All 3 comments

I can take care of all of this (tied to #2110).

As you mentioned on https://github.com/argoproj/argo-cd/pull/2110#discussion_r315952349, we need to formalize a spec for the naming convention of action names. It seems like your suggestion would be action/<object kind>/<action name>, this is great because it will lift the need to include --kind when running actions.

Since <object kind>s are expected to have slashes, perhaps a better naming convention would be action/<object kind>:<action name>?

Resource actions should also be documented (no mention of them in current documentation).

Had quite a hard time trying to figure out the exact format of this action/* kind of permission, for more granular RBAC. Documentation would be MUCH appreciated. (The only mention to it is action/*, which is not very helpful.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KarstenSiemer picture KarstenSiemer  路  3Comments

rosscdh picture rosscdh  路  3Comments

peterbosalliandercom picture peterbosalliandercom  路  3Comments

Binyamse picture Binyamse  路  3Comments

haf picture haf  路  3Comments