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> |
subresource(String subresource)
Provides edit, patch, and replace methods for the given subresource
|
ExtensibleResource<T> |
unlock()
Removes the resource version from the current item.
|
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
SharedIndexInformers 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, requirewaitUntilCondition, waitUntilReadycreateOr, editStatus, patchStatuscreate, createOrReplacereplaceStatus, updateStatusaccept, edit, edit, edit, patch, patch, patch, patch, patch, patchcreate, createOrReplace, delete, patchStatus, updateStatusreplace, replaceStatusserverSideApplydryRuninform, inform, inform, informOnCondition, runnableInformerExtensibleResource<T> lockResourceVersion(String resourceVersion)
lockResourceVersion in interface Resource<T>ExtensibleResource<T> dryRun(boolean isDryRun)
DryRunabledryRun 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)
GracePeriodConfigurablewithGracePeriod in interface GracePeriodConfigurable<PropagationPolicyConfigurable<? extends Deletable>>gracePeriodSeconds - grace period integer value in secondsExtensibleResource<T> withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
PropagationPolicyConfigurableThe 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 DeletionPropagationExtensibleResource<T> withIndexers(Map<String,Function<T,List<String>>> indexers)
InformableSharedIndexInformers 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)
InformableIf 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 fetchInformableExtensibleResource<T> lockResourceVersion()
lockResourceVersion in interface Resource<T>T getItem()
Nameable.withName(String)ExtensibleResource<T> fieldValidation(FieldValidateable.Validation fieldValidation)
FieldValidateablefieldValidation in interface FieldValidateable<NonDeletingOperation<T>>ExtensibleResource<T> fieldManager(String manager)
ServerSideApplicableThe 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()
ServerSideApplicableforceConflicts in interface ServerSideApplicable<T>ServerSideApplicable for continued operationsExtensibleResource<T> withTimeout(long timeout, TimeUnit unit)
DeletablewithTimeout in interface DeletablewithTimeout in interface TimeoutablewithTimeout in interface TimeoutableScalable<T>timeout - 0 indicates no waitExtensibleResource<T> unlock()
NonDeletingOperationunlock in interface NonDeletingOperation<T>ExtensibleResource<T> subresource(String subresource)
NonDeletingOperationsubresource in interface NonDeletingOperation<T>default ExtensibleResource<T> withTimeoutInMillis(long timeoutInMillis)
DeletablewithTimeoutInMillis in interface DeletablewithTimeoutInMillis in interface TimeoutablewithTimeoutInMillis in interface TimeoutableScalable<T>timeoutInMillis - 0 indicates no waitCopyright © 2015–2024 Red Hat. All rights reserved.