community.general/lib/ansible
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
..
cli Do not use str() on exceptions (#46950) 2018-11-09 07:59:30 +01:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Add toml inventory plugin (#41593) 2018-11-06 10:02:36 -06:00
errors Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
executor display.error on no matching --start-at-task (#45221) 2018-11-15 19:35:51 -05:00
galaxy Support .yaml extension for meta file (#46505) 2018-11-09 17:29:06 -05:00
inventory inventory now errors for invalid group/host names (#45499) 2018-11-15 16:29:40 -05:00
module_utils Provide Kubernetes resource validation to k8s module (#43352) 2018-11-16 12:44:59 +00:00
modules Provide Kubernetes resource validation to k8s module (#43352) 2018-11-16 12:44:59 +00:00
parsing Do not use str() on exceptions (#46950) 2018-11-09 07:59:30 +01:00
playbook Do not use str() on exceptions (#46950) 2018-11-09 07:59:30 +01:00
plugins FTD modules: upsert functionality and bug fixes (#47747) 2018-11-16 11:55:36 +05:30
template Do not strip new lines in native jinja (#46751) 2018-10-19 00:14:43 +02:00
utils Various small fixes to bigip modules (#48769) 2018-11-15 19:48:22 -08:00
vars Include dependency role names in role_names. (#46483) 2018-11-15 10:01:29 -05:00
__init__.py
constants.py Update ansible-doc for invariants in the metadata/plugin_doc api 2018-10-31 10:41:46 -07:00
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00