Skip to content

Commit 8767415

Browse files
author
Anuj Chaudhari
authored
Add documentation for setting RBAC rules for CLIPlugin resources (#469)
1 parent 94bc6da commit 8767415

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/full/context-scoped-plugins.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,34 @@ spec:
116116
description: Feature plugin operations
117117
```
118118
119+
For Tanzu CLI to read these `CLIPlugin` resources available on the kubernetes
120+
cluster `get` and `list` RBAC permission needs to be given to all the users.
121+
To do that please configure below RBAC rules on your kubernetes cluster.
122+
123+
```yaml
124+
apiVersion: rbac.authorization.k8s.io/v1
125+
kind: ClusterRole
126+
metadata:
127+
name: read-cli-plugins
128+
rules:
129+
- apiGroups: ["cli.tanzu.vmware.com"]
130+
resources: ["cliplugins"]
131+
verbs: ["get", "list"]
132+
---
133+
apiVersion: rbac.authorization.k8s.io/v1
134+
kind: ClusterRoleBinding
135+
metadata:
136+
name: read-cli-plugins-rolebinding
137+
subjects:
138+
- kind: Group
139+
name: system:authenticated
140+
apiGroup: rbac.authorization.k8s.io
141+
roleRef:
142+
kind: ClusterRole
143+
name: read-cli-plugins
144+
apiGroup: rbac.authorization.k8s.io
145+
```
146+
119147
### When the context is of type Mission-Control
120148

121149
When the context is of type mission control, the Tanzu CLI uses a REST discovery to fetch the

0 commit comments

Comments
 (0)