You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/k8s/playbooks
Will Thames aaf29c785f Provide Kubernetes resource validation to k8s module (#43352)
* Provide Kubernetes resource validation to k8s module

Use kubernetes-validate to validate Kubernetes resource
definitions against the published schema

* Additional tests for kubernetes-validate

* Improve k8s error messages on exceptions

Parse the response body for the message rather than returning
a JSON blob

If we've validated and there are warnings, return those too - they
can be more helpful

```
"msg": "Failed to patch object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},
       \"status\":\"Failure\",\"message\":\"[pos 334]: json: decNum: got first char 'h'\",\"code\":500}\n",
```
vs
```
"msg": "Failed to patch object: [pos 334]: json: decNum: got first char 'h'\nresource
        validation error at spec.replicas: 'hello' is not of type u'integer'",
```

* Update versions used

In particular openshift/origin:3.9.0

* Add changelog for k8s validate change
6 years ago
..
roles/k8s Provide Kubernetes resource validation to k8s module (#43352) 6 years ago
full_test.yml Use a sensible default for k8s merge_type (#45284) 6 years ago
merge_type_fail.yml Use a sensible default for k8s merge_type (#45284) 6 years ago
older_openshift_fail.yml Provide Kubernetes resource validation to k8s module (#43352) 6 years ago
validate_installed.yml Provide Kubernetes resource validation to k8s module (#43352) 6 years ago
validate_not_installed.yml Provide Kubernetes resource validation to k8s module (#43352) 6 years ago