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/runner/lib/cloud
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
..
__init__.py Fix get_cloud_platforms config usage. 7 years ago
acme.py ACME: add support for POST-as-GET if GET fails with 405. (#44988) 6 years ago
aws.py Add Azure provider support to ansible-test and CI. 7 years ago
azure.py Cleanup and enhancements for ansible-test. (#37142) 7 years ago
cs.py Bug fixes and cleanup for ansible-test. (#45991) 6 years ago
foreman.py Add a test target for the foreman inventory script (#46837) 6 years ago
gcp.py Bug fixes and cleanup for ansible-test. (#45991) 6 years ago
nios.py Includes support for Reverse-Mapping zone in nios_zone module (#44525) 6 years ago
opennebula.py Bug fixes and cleanup for ansible-test. (#45991) 6 years ago
openshift.py Provide Kubernetes resource validation to k8s module (#43352) 6 years ago
tower.py Bug fixes and cleanup for ansible-test. (#45991) 6 years ago
vcenter.py bump version of 'vcenter-test-container' to '1.4.0' (govmomi v0.19.0) 6 years ago