new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static boolean deleteSecret(String name, String namespace) {

    KubernetesApiResponse<V1Secret> response = secretClient.delete(namespace, name);

    if (!response.isSuccess()) {
      getLogger().warning("Failed to delete secret '" + name + "' from namespace: "
              + namespace + " with HTTP status code: " + response.getHttpStatusCode());
      return false;
    }

    if (response.getObject() != null) {
      getLogger().info(
              "Received after-deletion status of the requested object, will be deleting "
                      + "secret in background!");
    }

    return true;
  }
/**
   * Delete a Kubernetes Secret.
   *
   * @param name name of the Secret
   * @param namespace name of namespace
   * @return true if successful, false otherwise
   */
Delete a Kubernetes Secret.
@param name name of the Secret
@param namespace name of namespace
@return true if successful, false otherwise
Delete a Kubernetes Secret . @param name name of the Secret @param namespace name of namespace @return true if successful false otherwise
public static boolean deleteSecret(String name, String namespace) {
    KubernetesApiResponse<V1Secret> response = secretClient.delete(namespace, name);
    if (!response.isSuccess()) {
      getLogger().warning("Failed to delete secret '" + name + "' from namespace: "
              + namespace + " with HTTP status code: " + response.getHttpStatusCode());
      return false;
    }
    if (response.getObject() != null) {
      getLogger().info(
              "Received after-deletion status of the requested object, will be deleting "
                      + "secret in background!");
    }
    return true;
  }
public static boolean deleteSecret ( String name , String namespace ) { KubernetesApiResponse < V1Secret > response = secretClient . delete ( namespace , name ) ; if ( ! response . isSuccess ( ) ) { getLogger ( ) . warning ( "Failed to delete secret '" + name + "' from namespace: " + namespace + " with HTTP status code: " + response . getHttpStatusCode ( ) ) ; return false ; } if ( response . getObject ( ) != null ) { getLogger ( ) . info ( "Received after-deletion status of the requested object, will be deleting " + "secret in background!" ) ; } return true ; }
Delete a Kubernetes Secret.
Delete a Kubernetes Secret .