trait NamespacedResourceDeleteAll[T] extends AnyRef
Extra capability for NamespacedResource interfaces providing deleteAll
It is separated because it is not supported by all resources.
- T
Resource type
- Alphabetic
- By Inheritance
- NamespacedResourceDeleteAll
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
val
asGenericResourceDeleteAll: ResourceDeleteAll[T]
A more generic interface for the same resource
Concrete Value Members
-
def
deleteAll(deleteOptions: DeleteOptions, namespace: K8sNamespace, dryRun: Boolean = false, gracePeriod: Option[zio.Duration] = None, propagationPolicy: Option[PropagationPolicy] = None, fieldSelector: Option[FieldSelector] = None, labelSelector: Option[LabelSelector] = None): IO[K8sFailure, Status]
Delete all resources matching the provided constraints
Delete all resources matching the provided constraints
- deleteOptions
Delete options
- namespace
Namespace of the resources to be deleted
- dryRun
If true, the request is sent to the server but it will not create the resource.
- gracePeriod
The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- propagationPolicy
Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- fieldSelector
Select the items to be deleted by field selectors. Not all fields are supported by the server.
- labelSelector
Select the items to be deleted by label selectors.
- returns
Status returned by the Kubernetes API