K8s dynamic collected changes (#40745)

* Move k8s modules to dynamic backend

* update required openshift version

* update -> patch

* use new dynamic client exceptions

* style

* guard urllib3 import

* guard ansibleerror import

* give more information about error cause

* format in variable

* style

* rename tests

* Search for provided kind in a few more places to match old behavior, properly handle failure

* make common code use fail instead of fail_json, to work for lookup plugins as well

* update docs

* move openshift_raw tests into k8s tests

* fix typo

* Use diff of response and resource to determine change, don't do any checking client-side before making requests

* remove duplicate yaml blocks

* Update porting guide for k8s module

* remove invalid doc refs

* If fuzzy searching finds a resource, update resource_definition to match proper kind and version

* remote unsupported openshift_raw variables

* properly check environment variables when determining auth method:
This commit is contained in:
Fabian von Feilitzsch 2018-05-30 13:04:48 -04:00 committed by Adam Miller
commit 4d77878654
23 changed files with 661 additions and 2038 deletions

View file

@ -21,7 +21,9 @@ short_description: Set a new size for a Deployment, ReplicaSet, Replication Cont
version_added: "2.5"
author: "Chris Houseknecht (@chouseknecht)"
author:
- "Chris Houseknecht (@chouseknecht)"
- "Fabian von Feilitzsch (@fabianvf)"
description:
- Similar to the kubectl scale command. Use to set the number of replicas for a Deployment, ReplicatSet,
@ -35,7 +37,7 @@ extends_documentation_fragment:
requirements:
- "python >= 2.7"
- "openshift == 0.4.3"
- "openshift >= 0.6"
- "PyYAML >= 3.11"
'''