mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Support for Bearer authentication
This commit is contained in:
parent
5a8ba39dd7
commit
4eb3f65776
@ -145,6 +145,9 @@ def _setup_conn(**kwargs):
|
||||
kubernetes.client.configuration.host = host
|
||||
kubernetes.client.configuration.user = username
|
||||
kubernetes.client.configuration.passwd = password
|
||||
if __salt__['config.option']('kubernetes.api_key'):
|
||||
kubernetes.client.configuration.api_key = {'authorization': __salt__['config.option']('kubernetes.api_key')}
|
||||
kubernetes.client.configuration.api_key_prefix = {'authorization': __salt__['config.option']('kubernetes.api_key_prefix')}
|
||||
|
||||
if ca_cert_file:
|
||||
kubernetes.client.configuration.ssl_ca_cert = ca_cert_file
|
||||
|
Loading…
Reference in New Issue
Block a user