trim whitespaces in manifests
This commit is contained in:
@@ -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]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user