-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RBAC policy for restart #2401
Comments
Hi @servo1x, can you please elaborate a little more on your requirement? To my limited knowledge, there is no concept of "restarting" a pod, neither in K8s nor in ArgoCD. As far as I understand, the way you can accomplish something similar is either by deleting a pod resource belonging to something like a controlling resource (such as Is your use-case for restarting a Pod using the delete resource action of ArgoCD (e.g. via the web UI) on a Pod object? |
Not 100% sure this resolves the problem. We just merged granular RBAC for resource actions: #2002 and custom action which is equivalent to In 1.3 it will be possible to give permission to execute |
I guess we can close it . @servo1x please feel free to reopen if necessary |
It would be nice if we had an example of how this is accomplished and maybe some documentation. |
For those who came looking for adding policy to just restart the deployments, it can be done this way
|
Small tweak to the above example to get this to work on argo 2.0.1 (apps -> extensions): |
It'd be really nice if the docs could have more detailed explanations of more complex configs like this. I was looking for this as well but the docs don't give any clue about the more complex action shown here. |
In my case, it was |
Any other examples from people that have gotten this to work with recent ArgoCD versions? I'm trying with project RBAC ( |
Can confirm:
|
Here's an issue tracking the afaik this is the closest we have to docs about actions RBAC: https://argo-cd.readthedocs.io/en/latest/operator-manual/rbac/#the-action-action Would be happy to review any docs PR clarifying RBAC for actions! |
Ran into this today, and this worked for me.
action on its own didn't though, must have the /* |
This worked for me Argo CD v2.8.4
Error I received was
|
Is your feature request related to a problem? Please describe.
We would like developers the ability to restart their pods but currently, from my understanding this requires the delete action to be allowed. We don't want to give developers the ability to delete any resource but do want to allow restarts.
Describe the solution you'd like
There should be a RBAC action for restarts.
The text was updated successfully, but these errors were encountered: