Merge pull request #25344 from makocchi-git/fix/trim_space_psp

Trim whitespaces in manifests
This commit is contained in:
Kubernetes Prow Robot
2020-12-15 08:29:49 -08:00
committed by GitHub
@@ -222,6 +222,11 @@ spec:
- name: pause - name: pause
image: k8s.gcr.io/pause image: k8s.gcr.io/pause
EOF EOF
```
The output is similar to this:
```
Error from server (Forbidden): error when creating "STDIN": pods "pause" is forbidden: unable to validate against any pod security policy: [] Error from server (Forbidden): error when creating "STDIN": pods "pause" is forbidden: unable to validate against any pod security policy: []
``` ```
@@ -270,6 +275,11 @@ spec:
- name: pause - name: pause
image: k8s.gcr.io/pause image: k8s.gcr.io/pause
EOF EOF
```
The output is similar to this
```
pod "pause" created pod "pause" created
``` ```
@@ -289,6 +299,11 @@ spec:
securityContext: securityContext:
privileged: true privileged: true
EOF EOF
```
The output is similar to this:
```
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] 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]
``` ```