Package io.fabric8.kubernetes.client.dsl
Interface Deletable
-
- All Superinterfaces:
Timeoutable
- All Known Subinterfaces:
AnyNamespaceOperation<T,L,R>,CertificateSigningRequestResource<T>,CreateOrDeleteable<T>,DeletableWithOptions,ExtensibleResource<T>,FilterWatchListDeletable<T,L,R>,GracePeriodConfigurable<T>,ItemWritableOperation<T>,ListVisitFromServerGetDeleteRecreateWaitApplicable<T>,ListVisitFromServerWritable<T>,MixedOperation<T,L,R>,NamespaceableResource<T>,NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<T>,NonDeletingOperation<T>,NonNamespaceOperation<T,L,R>,ParameterMixedOperation<T,L,R>,PodResource,PropagationPolicyConfigurable<T>,ReplaceDeletable<T>,Resource<T>,RollableScalableResource<T>,ScalableResource<T>,ServiceAccountResource,ServiceResource<T>,TimeoutableScalable<T>,V1beta1CertificateSigningRequestResource<T>,WritableOperation<T>
- All Known Implementing Classes:
ExtensibleResourceAdapter,ResourceAdapter
public interface Deletable extends Timeoutable
-
-
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 theStatusDetailsof resources marked for deletion as determined by the api server response(s).DeletablewithTimeout(long timeout, TimeUnit unit)Perform the delete operation as blocking, waiting for finalizers, for up to the given timeoutDeletablewithTimeoutInMillis(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 theStatusDetailsof 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:
withTimeoutin interfaceTimeoutable- 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:
withTimeoutInMillisin interfaceTimeoutable- Parameters:
timeoutInMillis- 0 indicates no wait
-
-