Exemple #1
0
    def acquire_time(self):
        global parse_rfc3339
        if parse_rfc3339 is None:
            from kubernetes.config.dateutil import parse_rfc3339  # noqa F401

        try:
            return parse_rfc3339(self._record.get("acquireTime"))
        except Exception:
            return None
Exemple #2
0
 def acquire_time(self):
     try:
         return parse_rfc3339(self._record.get("acquireTime"))
     except Exception:
         return None
Exemple #3
0
 def renew_time(self):
     try:
         return parse_rfc3339(self._record.get("renewTime"))
     except Exception:
         return None