MCPcopy 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
55def _is_expired(expiry):
56 return ((parse_rfc3339(expiry) - EXPIRY_SKEW_PREVENTION_DELAY)
57 <= datetime.datetime.utcnow().replace(tzinfo=UTC))
58
59
60class FileOrData(object):

Callers 3

load_gcp_tokenMethod · 0.70
_load_oid_tokenMethod · 0.70
load_from_exec_pluginMethod · 0.70

Calls 2

parse_rfc3339Function · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected