def METHOD_NAME(self) -> bool:
    """Test to see if we need a new secret from AWS S3."""
    # 1. Read our current secret
    try:
        ssl_cert = self.core_api.read_namespaced_secret(self.cert_secret, self.namespace)
    except client.exceptions.ApiException:
        return True
    cert_data = base64.b64decode(ssl_cert.data["tls.crt"])
    cert = crypto.load_certificate(crypto.FILETYPE_PEM, cert_data)
    # 2. Lookup the expiration date
    expiration_str = cert.get_notAfter()
    if expiration_str is None:
        return True
    expiration_date = date_parser.parse(expiration_str)
    expires_in = expiration_date - datetime.now(timezone.utc)
    self.log(f"Certificate expires on {expiration_date} ({expires_in} from now).")
    if expires_in < self.renew_before:
        return True
    return False