trim whitespaces in manifests

This commit is contained in:
makocchi-git
2020-12-02 15:43:10 +09:00
parent c7545c18be
commit 28c964b5c9
@@ -222,6 +222,11 @@ spec:
- name: pause
image: k8s.gcr.io/pause
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: []
```
@@ -270,6 +275,11 @@ spec:
- name: pause
image: k8s.gcr.io/pause
EOF
```
The output is similar to this
```
pod "pause" created
```
@@ -289,6 +299,11 @@ spec:
securityContext:
privileged: true
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]
```