Skip to content

Commit c782fd6

Browse files
authored
Merge pull request #25982 from ydFu/add-code-blocks-in-authorization
Add the code blocks in authorization.md
2 parents 2983359 + 1b70e98 commit c782fd6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/en/docs/reference/access-authn-authz/authorization.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,19 @@ a given action, and works regardless of the authorization mode used.
104104
```bash
105105
kubectl auth can-i create deployments --namespace dev
106106
```
107+
108+
The output is similar to this:
109+
107110
```
108111
yes
109112
```
110113

111114
```shell
112115
kubectl auth can-i create deployments --namespace prod
113116
```
117+
118+
The output is similar to this:
119+
114120
```
115121
no
116122
```
@@ -121,6 +127,9 @@ to determine what action other users can perform.
121127
```bash
122128
kubectl auth can-i list secrets --namespace dev --as dave
123129
```
130+
131+
The output is similar to this:
132+
124133
```
125134
no
126135
```
@@ -150,7 +159,7 @@ EOF
150159
```
151160

152161
The generated `SelfSubjectAccessReview` is:
153-
```
162+
```yaml
154163
apiVersion: authorization.k8s.io/v1
155164
kind: SelfSubjectAccessReview
156165
metadata:

0 commit comments

Comments
 (0)