kubernetes/pkg/api/validation
Kubernetes Submit Queue 7cd32aba17 Merge pull request #45775 from liggitt/mirror-pod-validation
Automatic merge from submit-queue (batch tested with PRs 44337, 45775, 45832, 45574, 45758)

Tighten validation of mirror pod annotations

Tightens validation for pods with a mirror pod annotation:
1. spec.nodeName must be set
2. makes the mirror pod annotation immutable
3. starts validating pod-specific annotations during pod status update

None of these changes affect usage of the mirror pod annotation by kubelets, which only set it on pod creation (verified this is true back to 1.5.x)

the second commit updates the pod validation tests to look for specific error messages (best reviewed ignoring whitespace changes)

This is the validation portion of https://github.com/kubernetes/community/blob/master/contributors/design-proposals/kubelet-authorizer.md and https://github.com/kubernetes/features/issues/279

```release-note
Mirror pods must now indicate the nodeName they are bound to on creation. The mirror pod annotation is now treated as immutable and cannot be added to an existing pod, removed from a pod, or modified.
```
2017-05-15 18:39:13 -07:00
..
testdata/v1 Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
BUILD Merge pull request #45390 from mbohlool/c4 2017-05-05 16:39:08 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
events_test.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
events.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00
schema_test.go pkg/api/testing: cut off fuzzers from static codecs 2017-02-02 06:58:28 +01:00
schema.go Merge pull request #45390 from mbohlool/c4 2017-05-05 16:39:08 -07:00
validation_test.go Merge pull request #45775 from liggitt/mirror-pod-validation 2017-05-15 18:39:13 -07:00
validation.go Merge pull request #45775 from liggitt/mirror-pod-validation 2017-05-15 18:39:13 -07:00