Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/kubernetes-client/python
/ _is_expired
Function
_is_expired
kubernetes/aio/config/kube_config.py:55–57 ·
view source on GitHub ↗
(expiry)
Source
from the content-addressed store, hash-verified
53
54
55
def
_is_expired(expiry):
56
return
((parse_rfc3339(expiry) - EXPIRY_SKEW_PREVENTION_DELAY)
57
<= datetime.datetime.utcnow().replace(tzinfo=UTC))
58
59
60
class
FileOrData(object):
Callers
3
load_gcp_token
Method · 0.70
_load_oid_token
Method · 0.70
load_from_exec_plugin
Method · 0.70
Calls
2
parse_rfc3339
Function · 0.70
replace
Method · 0.45
Tested by
no test coverage detected