Skip to content

Commit 28c964b

Browse files
committed
trim whitespaces in manifests
1 parent c7545c1 commit 28c964b

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

content/en/docs/concepts/policy/pod-security-policy.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,17 @@ kubectl-user create -f- <<EOF
216216
apiVersion: v1
217217
kind: Pod
218218
metadata:
219-
name: pause
219+
name: pause
220220
spec:
221221
containers:
222-
- name: pause
222+
- name: pause
223223
image: k8s.gcr.io/pause
224224
EOF
225+
```
226+
227+
The output is similar to this:
228+
229+
```
225230
Error from server (Forbidden): error when creating "STDIN": pods "pause" is forbidden: unable to validate against any pod security policy: []
226231
```
227232

@@ -264,12 +269,17 @@ kubectl-user create -f- <<EOF
264269
apiVersion: v1
265270
kind: Pod
266271
metadata:
267-
name: pause
272+
name: pause
268273
spec:
269274
containers:
270-
- name: pause
275+
- name: pause
271276
image: k8s.gcr.io/pause
272277
EOF
278+
```
279+
280+
The output is similar to this
281+
282+
```
273283
pod "pause" created
274284
```
275285
@@ -281,14 +291,19 @@ kubectl-user create -f- <<EOF
281291
apiVersion: v1
282292
kind: Pod
283293
metadata:
284-
name: privileged
294+
name: privileged
285295
spec:
286296
containers:
287-
- name: pause
297+
- name: pause
288298
image: k8s.gcr.io/pause
289299
securityContext:
290300
privileged: true
291301
EOF
302+
```
303+
304+
The output is similar to this:
305+
306+
```
292307
Error from server (Forbidden): error when creating "STDIN": pods "privileged" is forbidden: unable to validate against any pod security policy: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]
293308
```
294309

0 commit comments

Comments
 (0)