(pod)
Return if the pod is a static pending pod
    See https://github.com/kubernetes/kubernetes/pull/57106
    :param pod: dict
    :return: bool
Return if the pod is a static pending pod
    See https://github.com/kubernetes/kubernetes/pull/57106
    :param pod: dict
    :return: bool
Return if the pod is a static pending pod See https : // github . com / kubernetes / kubernetes / pull / 57106 : param pod : dict : return : bool
def is_static_pending_pod(pod):
    """
    Return if the pod is a static pending pod
    See https://github.com/kubernetes/kubernetes/pull/57106
    :param pod: dict
    :return: bool
    """
    try:
        if pod["metadata"]["annotations"]["kubernetes.io/config.source"] == "api":
            return False

        pod_status = pod["status"]
        if pod_status["phase"] != "Pending":
            return False

        return "containerStatuses" not in pod_status
    except KeyError:
        return False
def is_static_pending_pod ( pod ) : try : if pod [ "metadata" ] [ "annotations" ] [ "kubernetes.io/config.source" ] == "api" : return False pod_status = pod [ "status" ] if pod_status [ "phase" ] != "Pending" : return False return "containerStatuses" not in pod_status except KeyError : return False