Merge pull request #1947 from arrikto/feature-out-of-cluster-token-refresh

Fix the refreshing of tokens from outside the cluster
This commit is contained in:
Kubernetes Prow Robot 2023-01-16 11:28:09 -08:00 committed by GitHub
commit 8f80cf444e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -575,7 +575,7 @@ class KubeConfigLoader(object):
def _refresh_api_key(client_configuration):
if ('expiry' in self.__dict__ and _is_expired(self.expiry)):
self._load_authentication()
self._set_config(client_configuration)
self._set_config(client_configuration)
client_configuration.refresh_api_key_hook = _refresh_api_key
# copy these keys directly from self to configuration object
keys = ['host', 'ssl_ca_cert', 'cert_file', 'key_file', 'verify_ssl']