Merge pull request #43207 from xilabao/add-can-i-example
Automatic merge from submit-queue add can-i example use * can check if the admin user or not.
This commit is contained in:
		| @@ -66,6 +66,9 @@ var ( | |||||||
| 		# Check to see if I can list deployments in my current namespace | 		# Check to see if I can list deployments in my current namespace | ||||||
| 		kubectl auth can-i list deployments.extensions | 		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" | 		# Check to see if I can get the job named "bar" in namespace "foo" | ||||||
| 		kubectl auth can-i list jobs.batch/bar -n foo`) | 		kubectl auth can-i list jobs.batch/bar -n foo`) | ||||||
| ) | ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Submit Queue
					Kubernetes Submit Queue