Files
kubernetes/pkg
Kubernetes Submit Queue f47707129c Merge pull request #31927 from timstclair/psp
Automatic merge from submit-queue

Fix PSP volumes error message

Was:
```
Error from server: error when creating "pause-pod.yaml": pods "pause" is forbidden: unable to validate against any pod security policy: [spec.containers[0].securityContext.volumes[0]: Invalid value: "secret": secret volumes are not allowed to be used]
```
Now:
```
Error from server: error when creating "pause-pod.yaml": pods "pause" is forbidden: unable to validate against any pod security policy: [spec.volumes[0]: Invalid value: "secret": secret volumes are not allowed to be used]
```

Also, only perform the validation once (by moving it from `ValidateContainerSecurityContext` to `ValidatePodSecurityContext`).

---

1.4 Justification:

- Risk: low, this is just altering an error message
- Rollback: nothing should depend on this functionality
- Cost: the old error message didn't make any sense (there are no volumes on a container SecurityContext). This is fixing a bug.
2016-09-02 22:04:16 -07:00
..
2016-08-31 13:46:40 -07:00
2016-08-23 00:55:47 -04:00
2016-08-31 13:46:40 -07:00
2016-07-16 13:48:21 -04:00
2016-08-25 10:57:31 -07:00
2016-08-22 14:18:15 -04:00
2016-09-01 15:55:34 -07:00
2016-08-22 12:59:54 -07:00
2016-07-16 13:48:21 -04:00