Files
kubernetes/hack
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
..
2016-05-14 23:19:18 -07:00
2016-06-08 17:22:12 -07:00
2016-05-12 22:04:19 -04:00
2016-03-02 20:46:32 -05:00
2016-06-08 17:22:12 -07:00
2016-05-08 20:30:37 -07:00
2016-06-08 17:22:12 -07:00
2016-04-20 12:12:29 -04:00
2016-06-08 17:22:12 -07:00
2016-05-26 10:27:45 -07:00
2016-06-08 17:22:12 -07:00