Files
community.general/lib/ansible/module_utils
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
2018-11-16 12:44:59 +00:00
..
2018-11-02 12:14:57 -04:00
2018-11-14 18:05:25 +05:30
2017-08-07 19:46:06 -07:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2018-11-15 13:44:10 +00:00
2017-06-02 12:14:11 +01:00
2018-08-21 16:32:37 +02:00
2018-11-16 12:39:05 +00:00
2018-09-24 21:03:50 +02:00
2018-11-15 11:06:54 +10:00
2017-11-21 10:03:34 -08:00
2017-09-13 01:53:08 -07:00
2018-07-31 13:23:05 -04:00
2017-06-02 12:14:11 +01:00