code: func QuotaV1Pod(pod *corev1.Pod, clock clock.Clock) bool {
  	// if pod is terminal, ignore it for quota
  	if corev1.PodFailed == pod.Status.Phase || corev1.PodSucceeded == pod.Status.Phase {
  		return false
  	}
  	// if pods are stuck terminating (for example, a node is lost), we do not want
  	// to charge the user for that pod in quota because it could prevent them from
  	// scaling up new pods to service their application.
  	if pod.DeletionTimestamp != nil && pod.DeletionGracePeriodSeconds != nil {
  		now := clock.Now()
  		deletionTime := pod.DeletionTimestamp.Time
  		gracePeriod := time.Duration(*pod.DeletionGracePeriodSeconds) * time.Second
  		if now.After(deletionTime.Add(gracePeriod)) {
  			return false
  		}
  	}
  	return true
  }
docs: // QuotaV1Pod returns true if the pod is eligible to track against a quota
  // if it's not in a terminal state according to its phase.