From da28089a783c434b73d26d85f2b3feecabc887b4 Mon Sep 17 00:00:00 2001 From: Gerrit Date: Thu, 18 Apr 2019 11:52:41 +0200 Subject: [PATCH] Add proxy parameter to k8s module. (#55377) --- lib/ansible/module_utils/k8s/common.py | 1 + lib/ansible/plugins/doc_fragments/k8s_auth_options.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/ansible/module_utils/k8s/common.py b/lib/ansible/module_utils/k8s/common.py index a24ad67646e..2eaf9da9fc7 100644 --- a/lib/ansible/module_utils/k8s/common.py +++ b/lib/ansible/module_utils/k8s/common.py @@ -122,6 +122,7 @@ AUTH_ARG_SPEC = { 'type': 'path', 'aliases': ['key_file'], }, + 'proxy': {}, } diff --git a/lib/ansible/plugins/doc_fragments/k8s_auth_options.py b/lib/ansible/plugins/doc_fragments/k8s_auth_options.py index 23029057777..f9b9194e727 100644 --- a/lib/ansible/plugins/doc_fragments/k8s_auth_options.py +++ b/lib/ansible/plugins/doc_fragments/k8s_auth_options.py @@ -67,6 +67,11 @@ options: environment variable. type: bool aliases: [ verify_ssl ] + proxy: + description: + - The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable. + - Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY). + version_added: "2.9" notes: - "The OpenShift Python client wraps the K8s Python client, providing full access to all of the APIS and models available on both platforms. For API version details and