From 1833602bf8ad40073bbf641cba0735620253c39e Mon Sep 17 00:00:00 2001 From: xilabao Date: Thu, 16 Mar 2017 15:55:58 +0800 Subject: [PATCH] add can-i example --- pkg/kubectl/cmd/auth/cani.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/kubectl/cmd/auth/cani.go b/pkg/kubectl/cmd/auth/cani.go index 44891867401..e04ae79da53 100644 --- a/pkg/kubectl/cmd/auth/cani.go +++ b/pkg/kubectl/cmd/auth/cani.go @@ -66,6 +66,9 @@ var ( # Check to see if I can list deployments in my current namespace kubectl auth can-i list deployments.extensions + # Check to see if I can do everything in my current namespace ("*" means all) + kubectl auth can-i '*' '*' + # Check to see if I can get the job named "bar" in namespace "foo" kubectl auth can-i list jobs.batch/bar -n foo`) )