Skip to content

Commit a07531b

Browse files
author
Alexis Zamanis
committed
Fix the refreshing of tokens from outside the cluster
Requests from outside the cluster may have stale tokens and fail with status code `401`. Signed-off-by: Alexis Zamanis <[email protected]>
1 parent 9df5fa7 commit a07531b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/base/config/kube_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def _set_config(self, client_configuration):
575575
def _refresh_api_key(client_configuration):
576576
if ('expiry' in self.__dict__ and _is_expired(self.expiry)):
577577
self._load_authentication()
578-
self._set_config(client_configuration)
578+
self._set_config(client_configuration)
579579
client_configuration.refresh_api_key_hook = _refresh_api_key
580580
# copy these keys directly from self to configuration object
581581
keys = ['host', 'ssl_ca_cert', 'cert_file', 'key_file', 'verify_ssl']

0 commit comments

Comments
 (0)