T
- The resource type.public interface Resource<T> extends Scalable<T>, FromServerGettable<T>, WatchAndWaitable<T>, WritableOperation<T>, DryRunable<WritableOperation<T>>, Informable<T>
FieldValidateable.Validation
Modifier and Type | Method and Description |
---|---|
default GracePeriodConfigurable<? extends Deletable> |
cascading(boolean enabled)
Deprecated.
Please Use
PropagationPolicyConfigurable.withPropagationPolicy(DeletionPropagation) instead. This field has been
deprecated since 1.7. |
boolean |
isReady()
Check if the resource is ready.
|
T |
item()
Get the item used to create the current operation context if available.
|
ReplaceDeletable<T> |
lockResourceVersion() |
ReplaceDeletable<T> |
lockResourceVersion(String resourceVersion) |
T |
require()
Perform a
Gettable.get() , but throws an exception if the server resource does not exist. |
scale, scale, scale, scale
fromServer
withResourceVersion
waitUntilCondition, waitUntilReady
createOr, editStatus, patchStatus, subresource, unlock
create, createOrReplace
replaceStatus, updateStatus
accept, edit, edit, edit, patch, patch, patch, patch, patch, patch
create, createOrReplace, delete, patchStatus, updateStatus
withGracePeriod
withPropagationPolicy
delete, withTimeout, withTimeoutInMillis
replace, replaceStatus
fieldManager, forceConflicts, serverSideApply
fieldValidation
dryRun, dryRun
inform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimit
@Deprecated default GracePeriodConfigurable<? extends Deletable> cascading(boolean enabled)
PropagationPolicyConfigurable.withPropagationPolicy(DeletionPropagation)
instead. This field has been
deprecated since 1.7.enabled
- whether dependents should be orphaned or not.boolean isReady()
Note: for resources other than Node, Deployment, ReplicaSet, StatefulSet, Pod, ReplicationController, and DeploymentConfig readiness is simply an existence check.
Also note this obtains the latest version of the resource from the server even if the context item is present.
T require() throws ResourceNotFoundException
Gettable.get()
, but throws an exception if the server resource does not exist.KubernetesClientException
- if an error occursResourceNotFoundException
- if resource is absentReplaceDeletable<T> lockResourceVersion()
ReplaceDeletable<T> lockResourceVersion(String resourceVersion)
T item()
Copyright © 2015–2024 Red Hat. All rights reserved.