add option proxy_headers for k8s modules (#58)

* add option proxy_headers for k8s modules

* Update and rename 50-add-support-for-proxy_headers-on-authentication to 58-add-support-for-proxy_headers-on-authentication.yaml

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
abikouo
2021-04-28 08:44:57 +02:00
committed by GitHub
parent 0e740a1f45
commit d29f8c1eb7
4 changed files with 51 additions and 2 deletions

View File

@@ -11,6 +11,12 @@ def list_dict_str(value):
raise TypeError
AUTH_PROXY_HEADERS_SPEC = dict(
proxy_basic_auth=dict(type='str', no_log=True),
basic_auth=dict(type='str', no_log=True),
user_agent=dict(type='str')
)
AUTH_ARG_SPEC = {
'kubeconfig': {
'type': 'path',
@@ -43,6 +49,10 @@ AUTH_ARG_SPEC = {
'proxy': {
'type': 'str',
},
'proxy_headers': {
'type': 'dict',
'options': AUTH_PROXY_HEADERS_SPEC
},
'persist_config': {
'type': 'bool',
},
@@ -76,6 +86,7 @@ AUTH_ARG_MAP = {
'cert_file': 'client_cert',
'key_file': 'client_key',
'proxy': 'proxy',
'proxy_headers': 'proxy_headers',
'persist_config': 'persist_config',
}