Extend example to contain --as==...

This commit is contained in:
Thomas Guettler 2023-01-29 19:39:58 +01:00
parent 8e642d3d0d
commit 2b980b8c01

View File

@ -83,6 +83,11 @@ var (
# Check to see if I can list deployments in my current namespace
kubectl auth can-i list deployments.apps
# Check to see if service account "foo" of namespace "dev" can list pods
# in the namespace "prod".
# You must be allowed to use impersonation for the global option "--as".
kubectl auth can-i list pods --as=system:serviceaccount:dev:foo -n prod
# Check to see if I can do everything in my current namespace ("*" means all)
kubectl auth can-i '*' '*'