public interface ExtensibleResource<T> extends Resource<T>, TimeoutableScalable<T>
ExtensibleResourceAdapter
that returns
a non-specialized valueFieldValidateable.Validation
Modifier and Type | Method and Description |
---|---|
ExtensibleResource<T> |
dryRun(boolean isDryRun)
Indicates whether modifications should not be persisted or not.
|
ExtensibleResource<T> |
fieldManager(String manager)
FieldManager is a name associated with the actor or entity that is making these changes.
|
ExtensibleResource<T> |
fieldValidation(FieldValidateable.Validation fieldValidation)
Instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields,
provided that the `ServerSideFieldValidation` feature gate is also enabled.
|
ExtensibleResource<T> |
forceConflicts()
Force this request / fieldManager to take ownership over conflicting fields.
|
ExtensibleResource<T> |
fromServer() |
T |
getItem()
Return the current item, which may be null if the resource was created
using
Nameable.withName(String) |
<C extends Client> |
inWriteContext(Class<C> clazz)
Should be used to obtain a client in the same write context as the given resource
- dryRun, DeletionPropagation, etc.
|
ExtensibleResource<T> |
lockResourceVersion() |
ExtensibleResource<T> |
lockResourceVersion(String resourceVersion) |
default T |
scale(int count)
Scale the resource to given count
|
ExtensibleResource<T> |
withGracePeriod(long gracePeriodSeconds)
The duration in seconds before the object should be deleted.
|
ExtensibleResource<T> |
withIndexers(Map<String,Function<T,List<String>>> indexers)
The indexers to add to
SharedIndexInformer s created by subsequent inform calls; |
ExtensibleResource<T> |
withLimit(Long limit)
Set the limit to the number of resources to list at one time.
|
ExtensibleResource<T> |
withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
Whether and how garbage collection will be performed.
|
ExtensibleResource<T> |
withResourceVersion(String resourceVersion) |
ExtensibleResource<T> |
withTimeout(long timeout,
TimeUnit unit)
Perform the delete operation as blocking, waiting for finalizers, for up to the given timeout
|
default ExtensibleResource<T> |
withTimeoutInMillis(long timeoutInMillis)
Perform the delete operation as blocking, waiting for finalizers, for up to the given timeout
|
cascading, isReady, item, require
waitUntilCondition, waitUntilReady
create, createOrReplace
accept, edit, edit, edit, editStatus, patch, patch, patch, patch, patch, patch, patchStatus
replace, replaceStatus, update, updateStatus
create, createOrReplace, delete, patchStatus, updateStatus
replace, replaceStatus
serverSideApply
dryRun
inform, inform, inform, informOnCondition, runnableInformer
ExtensibleResource<T> lockResourceVersion(String resourceVersion)
lockResourceVersion
in interface Resource<T>
ExtensibleResource<T> dryRun(boolean isDryRun)
DryRunable
dryRun
in interface DryRunable<WritableOperation<T>>
isDryRun
- whether dry run is enabled or disabledExtensibleResource<T> withResourceVersion(String resourceVersion)
withResourceVersion
in interface WatchAndWaitable<T>
ExtensibleResource<T> fromServer()
fromServer
in interface FromServerGettable<T>
ExtensibleResource<T> withGracePeriod(long gracePeriodSeconds)
GracePeriodConfigurable
withGracePeriod
in interface GracePeriodConfigurable<PropagationPolicyConfigurable<? extends Deletable>>
gracePeriodSeconds
- grace period integer value in secondsExtensibleResource<T> withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
PropagationPolicyConfigurable
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.
withPropagationPolicy
in interface PropagationPolicyConfigurable<GracePeriodConfigurable<? extends Deletable>>
propagationPolicy
- propagation policy in form of string DeletionPropagation
ExtensibleResource<T> withIndexers(Map<String,Function<T,List<String>>> indexers)
Informable
SharedIndexInformer
s created by subsequent inform calls;withIndexers
in interface Informable<T>
indexers
- to customize the indexingInformable
<C extends Client> C inWriteContext(Class<C> clazz)
clazz
- client typeExtensibleResource<T> withLimit(Long limit)
Informable
If the list fails to complete it will be re-attempted with this limit, rather than falling back to the full list. You should ensure that your handlers are either async or fast acting to prevent long delays in list processing that may cause results to expire before reaching the end of the list.
WARNING As noted in the go client: "paginated lists are always served directly from etcd, which is significantly less efficient and may lead to serious performance and scalability problems."
withLimit
in interface Informable<T>
limit
- of a items in a list fetchInformable
ExtensibleResource<T> lockResourceVersion()
lockResourceVersion
in interface Resource<T>
T getItem()
Nameable.withName(String)
ExtensibleResource<T> fieldValidation(FieldValidateable.Validation fieldValidation)
FieldValidateable
fieldValidation
in interface FieldValidateable<NonDeletingOperation<T>>
ExtensibleResource<T> fieldManager(String manager)
ServerSideApplicable
The value must be less than or 128 characters long, and only contain printable characters
the default value is "fabric8"
fieldManager
in interface ServerSideApplicable<T>
ServerSideApplicable
for continued operationsExtensibleResource<T> forceConflicts()
ServerSideApplicable
forceConflicts
in interface ServerSideApplicable<T>
ServerSideApplicable
for continued operationsExtensibleResource<T> withTimeout(long timeout, TimeUnit unit)
Deletable
withTimeout
in interface Deletable
withTimeout
in interface Timeoutable
withTimeout
in interface TimeoutableScalable<T>
timeout
- 0 indicates no waitdefault ExtensibleResource<T> withTimeoutInMillis(long timeoutInMillis)
Deletable
withTimeoutInMillis
in interface Deletable
withTimeoutInMillis
in interface Timeoutable
withTimeoutInMillis
in interface TimeoutableScalable<T>
timeoutInMillis
- 0 indicates no waitCopyright © 2015–2023 Red Hat. All rights reserved.