kubernetes/hack/testdata
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
..
recursive allow kubectl subcmds to process multiple resources 2016-05-01 20:27:37 -07:00
deployment-multicontainer.yaml Add 'kubectl set image' 2016-05-18 21:23:17 -07:00
deployment-revision1.yaml controller: proportionally scale paused and rolling deployments 2016-06-20 12:13:35 +02:00
deployment-revision2.yaml controller: proportionally scale paused and rolling deployments 2016-06-20 12:13:35 +02:00
frontend-controller.yaml Set RC's pod template TerminationGracePeriodSeconds to 0 in test-cmd.sh test data 2016-02-23 14:22:41 -08:00
frontend-replicaset.yaml Copy replicaset example yamls to hack/testdata directory. 2016-03-10 10:53:29 -08:00
invalid-rc-with-empty-args.yaml Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
list.yaml Kubectl support for validating nested objects with different ApiGroups (e.g. Lists containing objects in different api groups). Closes #24089 2016-05-09 19:38:40 -07:00
multi-resource-json-modify.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-json.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-list-modify.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-list.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-rclist-modify.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-rclist.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-svclist-modify.json Enable validate when test kubectl with List 2015-10-11 20:56:15 -07:00
multi-resource-svclist.json Enable validate when test kubectl with List 2015-10-11 20:56:15 -07:00
multi-resource-yaml-modify.yaml Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-yaml.yaml Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
pod-apply.yaml Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
pod-with-api-env.yaml Correctly handle secret and configMap envs in kubectl describe 2016-04-07 14:16:59 -04:00
pod-with-large-name.yaml Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
pod-with-precision.json build/pause: write in C 2016-05-04 21:45:52 -04:00
pod.yaml Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
redis-slave-replicaset.yaml Copy replicaset example yamls to hack/testdata directory. 2016-03-10 10:53:29 -08:00
tls.crt Add a kubectl create secret tls command 2016-05-16 22:38:56 -07:00
tls.key Add a kubectl create secret tls command 2016-05-16 22:38:56 -07:00