Skip to content
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

kubectl access wait-for command #8

Open
heyLu opened this issue Mar 27, 2023 · 0 comments
Open

kubectl access wait-for command #8

heyLu opened this issue Mar 27, 2023 · 0 comments

Comments

@heyLu
Copy link
Member

heyLu commented Mar 27, 2023

It would be nice if there was a command to wait for access to be granted, so that there's no need for devs to check manually or for admins to notify people directly.

The command would check if there is a grant for the accessrequest in question and then exit with a successful return code when the request has been granted.

Desired workflow:

$ kubectl access request exec deployment/nginx cat /etc/nginx
created accessrequest access-exec-jane-p6scg (please wait for an admin to grant the permission)
$ kubectl access wait-for access-exec-jane-p6scg
waiting for access-exec-jane-p6scg to be granted
success, access-exec-jane-p6scg was granted by ...
$ kubectl exec deployment/nginx cat /etc/nginx/nginx.conf
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant