community.general/lib/ansible/modules/clustering
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
..
k8s Provide Kubernetes resource validation to k8s module (#43352) 2018-11-16 12:44:59 +00:00
openshift K8s dynamic collected changes (#40745) 2018-05-30 12:04:48 -05:00
__init__.py
consul.py Fix syntax error for Python 2.6 (#47635) 2018-10-27 12:43:53 +10:00
consul_acl.py Prefer readthedocs.io instead of readthedocs.org for doc links (#41537) 2018-06-18 08:22:50 -04:00
consul_kv.py Enable pylint rules and fix exposed bugs. (#47219) 2018-10-19 08:32:52 -07:00
consul_session.py Prefer readthedocs.io instead of readthedocs.org for doc links (#41537) 2018-06-18 08:22:50 -04:00
etcd3.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
pacemaker_cluster.py pacemaker_cluster: PEP8 compliancy and doc changes (#33001) 2017-11-17 20:34:29 +01:00
znode.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00