Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

kubectl access wait-for command #8

@heyLu

Description

@heyLu

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions