Interface Deletable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<io.fabric8.kubernetes.api.model.StatusDetails> delete()
      Deletes the resources at this context and returns the StatusDetails of resources marked for deletion as determined by the api server response(s).
      Deletable withTimeout​(long timeout, TimeUnit unit)
      Perform the delete operation as blocking, waiting for finalizers, for up to the given timeout
      Deletable withTimeoutInMillis​(long timeoutInMillis)
      Perform the delete operation as blocking, waiting for finalizers, for up to the given timeout
    • Method Detail

      • delete

        List<io.fabric8.kubernetes.api.model.StatusDetails> delete()
        Deletes the resources at this context and returns the StatusDetails of resources marked for deletion as determined by the api server response(s).

        It is not guaranteed that the returned list will contain all values marked for deletion - see Issue #3058

        To make sure that a resource is completely deleted and not only marked for deletion, use withTimeout(long, TimeUnit) to perform a blocking delete operation.

        
           client.pods().inNamespace("ns").withName("pod1").withTimeout(10, TimeUnit.SECONDS).delete();
         
        Throws:
        KubernetesClientException - if an error occurs.
      • withTimeout

        Deletable withTimeout​(long timeout,
                              TimeUnit unit)
        Perform the delete operation as blocking, waiting for finalizers, for up to the given timeout
        Specified by:
        withTimeout in interface Timeoutable
        Parameters:
        timeout - 0 indicates no wait
      • withTimeoutInMillis

        Deletable withTimeoutInMillis​(long timeoutInMillis)
        Perform the delete operation as blocking, waiting for finalizers, for up to the given timeout
        Specified by:
        withTimeoutInMillis in interface Timeoutable
        Parameters:
        timeoutInMillis - 0 indicates no wait