Add merge_type parameter to k8s module (#42219)

Allows patching of custom Kubernetes resources that
don't support strategic merge patching

Check that openshift module supports content_type param
(requires version newer than 0.6.0)
This commit is contained in:
Will Thames 2018-07-23 14:05:25 +10:00 committed by John R Barker
parent 40fbee6369
commit 0b77262288
3 changed files with 36 additions and 4 deletions

View file

@ -40,6 +40,21 @@ extends_documentation_fragment:
- k8s_resource_options
- k8s_auth_options
options:
merge_type:
description:
- Whether to override the default patch merge approach with a specific type. By the default, the strategic
merge will typically be used.
- For example, Custom Resource Definitions typically aren't updatable by the usual strategic merge. You may
want to use C(merge) if you see "strategic merge patch format is not supported"
- See U(https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/#use-a-json-merge-patch-to-update-a-deployment)
- Requires openshift >= 0.6.2
choices:
- json
- merge
- strategic-merge
version_added: "2.7"
requirements:
- "python >= 2.7"
- "openshift >= 0.6"