This repository was archived by the owner on Mar 13, 2022. It is now read-only.
File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 19
19
import os
20
20
import tempfile
21
21
22
- import oauthlib .oauth2
22
+ from six import PY3
23
+
23
24
import google .auth
24
25
import google .auth .transport .requests
26
+ import oauthlib .oauth2
25
27
import urllib3
26
28
import yaml
27
-
28
- from six import PY3
29
-
30
29
from kubernetes .client import ApiClient , ConfigurationObject , configuration
30
+ from requests_oauthlib import OAuth2Session
31
31
32
32
from .config_exception import ConfigException
33
33
from .dateutil import UTC , format_rfc3339 , parse_rfc3339
34
34
35
- from requests_oauthlib import OAuth2Session
36
-
37
35
EXPIRY_SKEW_PREVENTION_DELAY = datetime .timedelta (minutes = 5 )
38
36
KUBE_CONFIG_DEFAULT_LOCATION = os .environ .get ('KUBECONFIG' , '~/.kube/config' )
39
37
_temp_files = {}
@@ -250,7 +248,7 @@ def _load_oid_token(self):
250
248
expire = jwt_attributes .get ('exp' )
251
249
252
250
if ((expire is not None ) and
253
- (_is_expired (datetime .datetime .fromtimestamp (expire )))):
251
+ (_is_expired (datetime .datetime .fromtimestamp (expire )))):
254
252
self ._refresh_oidc (provider )
255
253
256
254
self .token = "Bearer %s" % provider ['config' ]['id-token' ]
You can’t perform that action at this time.
0 commit comments