kubernetes/pkg/api/validation
k8s-merge-robot b4c81a073a Merge pull request #25709 from asalkeld/null-deref
Automatic merge from submit-queue

Check for an empty value in validateField

```release-note
* Fix a panic when args was not supplied with any values.
```

reflect.TypeOf() can take a nil (it then returns a nil), but
Kind() panics on a nil.

Now the user gets the following output:
./kubectl.sh --server=http://localhost:8080 create -f ../../test-files/test-rc.yaml
error validating "../../test-files/test-rc.yaml": error validating data: unexpected nil value for field spec.template.spec.containers[0].args[0]; if you choose to ignore these errors, turn validation off with --validate=false

fixes #20627 and fixes #26927
2016-06-25 02:31:01 -07:00
..
testdata/v1 Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
events_test.go rewrite go imports 2015-08-05 17:30:03 -07:00
events.go Allow emitting PersistentVolume events. 2016-06-15 14:42:24 +02:00
name_test.go Make name validators return string slices 2016-05-18 00:48:01 -07:00
name.go Make name validators return string slices 2016-05-18 00:48:01 -07:00
schema_test.go Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
schema.go Merge pull request #25709 from asalkeld/null-deref 2016-06-25 02:31:01 -07:00
validation_test.go Move seccomp annotation validation into api/validation 2016-06-14 14:58:32 +02:00
validation.go Merge pull request #27036 from sttts/sttts-secure-seccomp-path 2016-06-18 15:58:07 -07:00