k3s/pkg/api/validation
Kubernetes Submit Queue d33f6b8a17 Merge pull request #41837 from liggitt/storageclass-param-validation
Automatic merge from submit-queue

Reserve kubernetes.io and k8s.io namespace for flex volume options

Split from https://github.com/kubernetes/kubernetes/pull/39488.

Flex volume already stuffs system information into the options map, and assumes it is free to do so:
```
	optionFSType    = "kubernetes.io/fsType"
	optionReadWrite = "kubernetes.io/readwrite"
	optionKeySecret = "kubernetes.io/secret"
```

this formalizes that by reserving the `kubernetes.io` and `k8s.io` namespaces so that user-specified options are never stomped by the system, and flex plugins can know that options with those namespaces came from the system, not user-options.

```release-note
Parameter keys in a StorageClass `parameters` map may not use the `kubernetes.io` or `k8s.io` namespaces.
```
2017-02-28 02:41:03 -08:00
..
testdata/v1
BUILD move genericvalidation to apimachinery 2017-02-02 07:37:00 -05:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00
doc.go
events.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
events_test.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
schema.go Improve error messages for ValidateObject method. 2017-01-24 09:12:06 +08:00
schema_test.go pkg/api/testing: cut off fuzzers from static codecs 2017-02-02 06:58:28 +01:00
validation.go Merge pull request #41837 from liggitt/storageclass-param-validation 2017-02-28 02:41:03 -08:00
validation_test.go Merge pull request #41837 from liggitt/storageclass-param-validation 2017-02-28 02:41:03 -08:00