integration-tests/src/test/java/oracle/kubernetes/operator/utils/K8sTestUtils.java
public boolean isPodTerminating(String namespace, String labelSelectors, String podName) {
    V1ObjectMeta metadata;
    V1Pod pod = getPod(namespace, labelSelectors, podName);
    metadata = pod != null ? pod.getMetadata() : null;
    if (metadata == null) {
      return false;
    }
    if (metadata.getDeletionTimestamp() != null) {
      LoggerHelper.getLocal().log(Level.INFO, metadata.getDeletionTimestamp().toString());
    } else {
      LoggerHelper.getLocal().log(Level.INFO, "DeletionTimestamp is null, which means pod is Running");
    }
    return metadata.getDeletionTimestamp() != null;
  }
/**
   * Utility method to determine if a pod is in Terminating status It detects the Terminating status
   * by looking at the metadata.getDeletionTimestamp field, a non null value means the pod is
   * terminating.
   *
   * @param namespace      - String namespace in which to look for the pods
   * @param labelSelectors - String selector to filter the pods in the name space
   * @param podName        - String name of the pod to query for
   * @return boolean true if the pod is in Terminating status
   */
Utility method to determine if a pod is in Terminating status It detects the Terminating status
by looking at the metadata.getDeletionTimestamp field, a non null value means the pod is
terminating.

@param namespace      - String namespace in which to look for the pods
@param labelSelectors - String selector to filter the pods in the name space
@param podName        - String name of the pod to query for
@return boolean true if the pod is in Terminating status
Utility method to determine if a pod is in Terminating status It detects the Terminating status by looking at the metadata . getDeletionTimestamp field a non null value means the pod is terminating . @param namespace - String namespace in which to look for the pods @param labelSelectors - String selector to filter the pods in the name space @param podName - String name of the pod to query for @return boolean true if the pod is in Terminating status
public boolean isPodTerminating(String namespace, String labelSelectors, String podName) {
    V1ObjectMeta metadata;
    V1Pod pod = getPod(namespace, labelSelectors, podName);
    metadata = pod != null ? pod.getMetadata() : null;
    if (metadata == null) {
      return false;
    }
    if (metadata.getDeletionTimestamp() != null) {
      LoggerHelper.getLocal().log(Level.INFO, metadata.getDeletionTimestamp().toString());
    } else {
      LoggerHelper.getLocal().log(Level.INFO, "DeletionTimestamp is null, which means pod is Running");
    }
    return metadata.getDeletionTimestamp() != null;
  }
public boolean isPodTerminating ( String namespace , String labelSelectors , String podName ) { V1ObjectMeta metadata ; V1Pod pod = getPod ( namespace , labelSelectors , podName ) ; metadata = pod != null ? pod . getMetadata ( ) : null ; if ( metadata == null ) { return false ; } if ( metadata . getDeletionTimestamp ( ) != null ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , metadata . getDeletionTimestamp ( ) . toString ( ) ) ; } else { LoggerHelper . getLocal ( ) . log ( Level . INFO , "DeletionTimestamp is null, which means pod is Running" ) ; } return metadata . getDeletionTimestamp ( ) != null ; }
Utility method to determine if a pod is in Terminating status It detects the Terminating status
 by looking at the metadata.getDeletionTimestamp field, a non null value means the pod is
 terminating.
Utility method to determine if a pod is in Terminating status It detects the Terminating status by looking at the metadata . getDeletionTimestamp field a non null value means the pod is terminating .