kubernetes/pkg/api/validation
Kubernetes Submit Queue d2e4f54791 Merge pull request #30302 from aveshagarwal/master-project-node-selector-taints-tolerations
Automatic merge from submit-queue (batch tested with PRs 43870, 30302, 42722, 43736)

Admission plugin to merge pod and namespace tolerations for restricting pod placement on nodes

```release-note
This admission plugin checks for tolerations on the pod being admitted and its namespace, and verifies if there is any conflict. If there is no conflict, then it merges the pod's namespace tolerations with the the pod's tolerations and it verifies them against its namespace' whitelist of tolerations and returns. If a namespace does not have its default or whitelist tolerations specified, then cluster level default and whitelist is used. An example of its versioned config:

apiVersion: apiserver.k8s.io/v1alpha1
kind: AdmissionConfiguration
plugins:
- name: "PodTolerationRestriction"
  configuration:
    apiVersion: podtolerationrestriction.admission.k8s.io/v1alpha1
    kind: Configuration
    default:
     - Key: key1
       Value: value1
     - Key: key2
       Value: value2
    whitelist:
    - Key: key1
      Value: value1
    - Key: key2
      Value: value2
```
2017-04-10 13:33:13 -07:00
..
testdata/v1 Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
BUILD Removed hostname/subdomain annotation. 2017-04-10 13:55:40 +08: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 Improve error messages for ValidateObject method. 2017-01-24 09:12:06 +08:00
validation_test.go add iSCSI CHAP API 2017-04-05 12:43:48 +00:00
validation.go Merge pull request #30302 from aveshagarwal/master-project-node-selector-taints-tolerations 2017-04-10 13:33:13 -07:00