Class BaseOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>
- java.lang.Object
-
- io.fabric8.kubernetes.client.dsl.internal.OperationSupport
-
- io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation<T,T>
-
- io.fabric8.kubernetes.client.dsl.internal.BaseOperation<T,L,R>
-
- All Implemented Interfaces:
AnyNamespaceable<AnyNamespaceOperation<T,L,R>>
,AnyNamespaceOperation<T,L,R>
,CreateOrReplaceable<T>
,Deletable
,DeletableWithOptions
,DryRunable<WritableOperation<T>>
,EditReplacePatchable<T>
,FieldValidateable<NonDeletingOperation<T>>
,Filterable<FilterWatchListDeletable<T,L,R>>
,FilterWatchListDeletable<T,L,R>
,Gettable<T>
,Informable<T>
,InOutCreateable<T,T>
,ItemReplacable<T>
,ItemWritableOperation<T>
,Listable<L>
,MixedOperation<T,L,R>
,Nameable<R>
,Namespaceable<NonNamespaceOperation<T,L,R>>
,NonDeletingOperation<T>
,NonNamespaceOperation<T,L,R>
,Replaceable<T>
,ReplaceDeletable<T>
,Resource<T>
,Scalable<T>
,ServerSideApplicable<T>
,Timeoutable
,TimeoutableScalable<T>
,Updatable<T>
,Waitable<T,T>
,Watchable<T>
,WatchAndWaitable<T>
,WritableOperation<T>
,ExtensibleResource<T>
,FromServerGettable<T>
,GracePeriodConfigurable<PropagationPolicyConfigurable<? extends Deletable>>
,ListerWatcher<T,L>
,OperationInfo
,PropagationPolicyConfigurable<GracePeriodConfigurable<? extends Deletable>>
- Direct Known Subclasses:
HasMetadataOperation
public class BaseOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>> extends CreateOnlyResourceOperation<T,T> implements OperationInfo, MixedOperation<T,L,R>, ExtensibleResource<T>, ListerWatcher<T,L>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.dsl.FieldValidateable
FieldValidateable.Validation
-
-
Field Summary
Fields Modifier and Type Field Description protected String
apiVersion
protected Class<L>
listType
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation
type
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, subresource
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseOperation(OperationContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
accept(Consumer<T> consumer)
URL
appendListOptionParams(URL base, io.fabric8.kubernetes.api.model.ListOptions listOptions)
T
create()
T
createOr(Function<NonDeletingOperation<T>,T> conflictAction)
T
createOrReplace()
T
createOrReplace(T item)
List<io.fabric8.kubernetes.api.model.StatusDetails>
delete()
boolean
delete(List<T> items)
List<io.fabric8.kubernetes.api.model.StatusDetails>
delete(T item)
protected List<io.fabric8.kubernetes.api.model.StatusDetails>
deleteAll()
ExtensibleResource<T>
dryRun()
ExtensibleResource<T>
dryRun(boolean isDryRun)
T
edit(io.fabric8.kubernetes.api.builder.Visitor... visitors)
<V> T
edit(Class<V> visitorType, io.fabric8.kubernetes.api.builder.Visitor<V> visitor)
T
edit(UnaryOperator<T> function)
T
editStatus(UnaryOperator<T> function)
protected URL
fetchListUrl(URL url, io.fabric8.kubernetes.api.model.ListOptions listOptions)
ExtensibleResource<T>
fieldManager(String manager)
ExtensibleResource<T>
fieldValidation(FieldValidateable.Validation fieldValidation)
ExtensibleResource<T>
forceConflicts()
OperationInfo
forOperationType(String type)
BaseOperation<T,L,R>
fromServer()
T
get()
String
getApiEndpointPath()
protected Class<? extends Config>
getConfigType()
String
getFieldQueryParam()
Long
getGracePeriodSeconds()
String
getGroup()
T
getItem()
T
getItemOrRequireFromServer()
Return the context item or retrieves the remote itemString
getKind()
Long
getLimit()
Class<L>
getListType()
protected T
getNonNullItem()
String
getOperationType()
String
getPlural()
io.fabric8.kubernetes.api.model.DeletionPropagation
getPropagationPolicy()
Readiness
getReadiness()
String
getResourceVersion()
String
getVersion()
int
getWatchReconnectInterval()
protected T
handleCreate(T resource)
protected io.fabric8.kubernetes.api.model.Status
handleDeploymentRollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback deploymentRollback)
protected T
handleGet(URL resourceUrl)
protected T
handlePatch(PatchContext context, T current, T updated)
protected T
handleResponse(HttpRequest.Builder requestBuilder)
<S> S
handleScale(S scaleParam, Class<S> scaleType)
protected T
handleUpdate(T updated)
BaseOperation<T,L,R>
inAnyNamespace()
SharedIndexInformer<T>
inform(ResourceEventHandler<? super T> handler, long resync)
CompletableFuture<List<T>>
informOnCondition(Predicate<List<T>> condition)
BaseOperation<T,L,R>
inNamespace(String namespace)
<C extends Client>
CinWriteContext(Class<C> clazz)
boolean
isReady()
boolean
isResourceNamespaced()
T
item()
L
list()
L
list(io.fabric8.kubernetes.api.model.ListOptions listOptions)
L
list(Integer limitVal, String continueVal)
R
load(File file)
R
load(InputStream is)
R
load(String path)
R
load(URL url)
ExtensibleResource<T>
lockResourceVersion()
ExtensibleResource<T>
lockResourceVersion(String resourceVersion)
BaseOperation<T,L,R>
newInstance(OperationContext context)
protected R
newResource(OperationContext context)
T
patch()
T
patch(PatchContext patchContext)
T
patch(PatchContext patchContext, String patch)
T
patch(PatchContext patchContext, T item)
T
patchStatus()
T
patchStatus(T item)
T
replace()
T
replace(T item)
T
replaceStatus()
T
replaceStatus(T item)
T
require()
protected T
requireFromServer()
Get the current item from the server
Will always return non-null or throw an exception.R
resource(T item)
Stream<R>
resources()
SharedIndexInformer<T>
runnableInformer(long resync)
T
scale(int count)
T
scale(int count, boolean wait)
io.fabric8.kubernetes.api.model.autoscaling.v1.Scale
scale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale)
T
serverSideApply()
void
setListType(Class<L> listType)
void
setType(Class<T> type)
CompletableFuture<L>
submitList(io.fabric8.kubernetes.api.model.ListOptions listOptions)
CompletableFuture<AbstractWatchManager<T>>
submitWatch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)
ExtensibleResource<T>
subresource(String subresource)
ExtensibleResource<T>
unlock()
T
update()
protected void
updateApiVersion(io.fabric8.kubernetes.api.model.HasMetadata hasMetadata)
Updates the resource if it has missing or default apiGroupVersion values and the resource is currently using API Groups with custom version stringsprotected L
updateListItems(L list)
Updates the list items if they have missing or default apiGroupVersion values and the resource is currently using API Groups with custom version strings, or if they are generic and lack a kindT
updateStatus()
T
updateStatus(T item)
T
waitUntilCondition(Predicate<T> condition, long amount, TimeUnit timeUnit)
T
waitUntilReady(long amount, TimeUnit timeUnit)
Watch
watch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)
Watch
watch(Watcher<T> watcher)
Watch
watch(String resourceVersion, Watcher<T> watcher)
FilterWatchListDeletable<T,L,R>
withField(String key, String value)
FilterWatchListDeletable<T,L,R>
withFields(Map<String,String> fields)
ExtensibleResource<T>
withGracePeriod(long gracePeriodSeconds)
ExtensibleResource<T>
withIndexers(Map<String,Function<T,List<String>>> indexers)
FilterWatchListDeletable<T,L,R>
withInvolvedObject(io.fabric8.kubernetes.api.model.ObjectReference objectReference)
FilterWatchListDeletable<T,L,R>
withLabel(String key, String value)
FilterWatchListDeletable<T,L,R>
withLabelIn(String key, String... values)
FilterWatchListDeletable<T,L,R>
withLabelNotIn(String key, String... values)
FilterWatchListDeletable<T,L,R>
withLabels(Map<String,String> labels)
FilterWatchListDeletable<T,L,R>
withLabelSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
FilterWatchListDeletable<T,L,R>
withLabelSelector(String selectorAsString)
BaseOperation<T,L,R>
withLimit(Long limit)
R
withName(String name)
FilterNested<FilterWatchListDeletable<T,L,R>>
withNewFilter()
FilterWatchListDeletable<T,L,R>
withoutField(String key, String value)
FilterWatchListDeletable<T,L,R>
withoutFields(Map<String,String> fields)
FilterWatchListDeletable<T,L,R>
withoutLabel(String key, String value)
FilterWatchListDeletable<T,L,R>
withoutLabels(Map<String,String> labels)
ExtensibleResource<T>
withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
BaseOperation<T,L,R>
withResourceVersion(String resourceVersion)
ExtensibleResource<T>
withTimeout(long timeout, TimeUnit unit)
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation
create, getType
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
addNamespacedUrlPathParts, assertResponseCode, checkName, checkNamespace, correctNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getKubernetesSerialization, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getOperationContext, getRequestConfig, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrlParts, handleCreate, handleDelete, handleDeploymentRollback, handleGet, handleMetric, handlePatch, handlePatch, handleRaw, handleRawGet, handleResponse, handleResponse, handleScale, handleUpdate, requestException, requestException, requestFailure, requestFailure, restCall, waitForResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.AnyNamespaceOperation
delete
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.EditReplacePatchable
patch, patch
-
Methods inherited from interface io.fabric8.kubernetes.client.extension.ExtensibleResource
withTimeoutInMillis
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Filterable
withLabel, withoutLabel
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Informable
inform, inform
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ItemWritableOperation
create
-
Methods inherited from interface io.fabric8.kubernetes.client.OperationInfo
getFullResourceName, getName, getNamespace
-
-
-
-
Constructor Detail
-
BaseOperation
protected BaseOperation(OperationContext ctx)
-
-
Method Detail
-
newInstance
public BaseOperation<T,L,R> newInstance(OperationContext context)
-
newResource
protected R newResource(OperationContext context)
-
fetchListUrl
protected URL fetchListUrl(URL url, io.fabric8.kubernetes.api.model.ListOptions listOptions)
-
get
public T get()
-
require
public T require()
-
getItemOrRequireFromServer
public T getItemOrRequireFromServer()
Return the context item or retrieves the remote item- Returns:
-
requireFromServer
protected T requireFromServer()
Get the current item from the server
Will always return non-null or throw an exception.
Differs fromrequire()
in that it does not throw aResourceNotFoundException
exception which for some reason is not aKubernetesClientException
-
edit
public T edit(UnaryOperator<T> function)
- Specified by:
edit
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
editStatus
public T editStatus(UnaryOperator<T> function)
- Specified by:
editStatus
in interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
edit
public T edit(io.fabric8.kubernetes.api.builder.Visitor... visitors)
- Specified by:
edit
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
edit
public <V> T edit(Class<V> visitorType, io.fabric8.kubernetes.api.builder.Visitor<V> visitor)
- Specified by:
edit
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
accept
public T accept(Consumer<T> consumer)
- Specified by:
accept
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
lockResourceVersion
public ExtensibleResource<T> lockResourceVersion(String resourceVersion)
- Specified by:
lockResourceVersion
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
lockResourceVersion
in interfaceResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
inNamespace
public BaseOperation<T,L,R> inNamespace(String namespace)
- Specified by:
inNamespace
in interfaceNamespaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
inAnyNamespace
public BaseOperation<T,L,R> inAnyNamespace()
- Specified by:
inAnyNamespace
in interfaceAnyNamespaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
load
public R load(InputStream is)
-
fromServer
public BaseOperation<T,L,R> fromServer()
- Specified by:
fromServer
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
fromServer
in interfaceFromServerGettable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
createOrReplace
public final T createOrReplace()
- Specified by:
createOrReplace
in interfaceCreateOrReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
createOr
public T createOr(Function<NonDeletingOperation<T>,T> conflictAction)
- Specified by:
createOr
in interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
unlock
public ExtensibleResource<T> unlock()
- Specified by:
unlock
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
unlock
in interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabels
public FilterWatchListDeletable<T,L,R> withLabels(Map<String,String> labels)
- Specified by:
withLabels
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelSelector
public FilterWatchListDeletable<T,L,R> withLabelSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
- Specified by:
withLabelSelector
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutLabels
public FilterWatchListDeletable<T,L,R> withoutLabels(Map<String,String> labels)
- Specified by:
withoutLabels
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelIn
public FilterWatchListDeletable<T,L,R> withLabelIn(String key, String... values)
- Specified by:
withLabelIn
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelNotIn
public FilterWatchListDeletable<T,L,R> withLabelNotIn(String key, String... values)
- Specified by:
withLabelNotIn
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabel
public FilterWatchListDeletable<T,L,R> withLabel(String key, String value)
- Specified by:
withLabel
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutLabel
public FilterWatchListDeletable<T,L,R> withoutLabel(String key, String value)
- Specified by:
withoutLabel
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelSelector
public FilterWatchListDeletable<T,L,R> withLabelSelector(String selectorAsString)
- Specified by:
withLabelSelector
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withFields
public FilterWatchListDeletable<T,L,R> withFields(Map<String,String> fields)
- Specified by:
withFields
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withField
public FilterWatchListDeletable<T,L,R> withField(String key, String value)
- Specified by:
withField
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withInvolvedObject
public FilterWatchListDeletable<T,L,R> withInvolvedObject(io.fabric8.kubernetes.api.model.ObjectReference objectReference)
- Specified by:
withInvolvedObject
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withNewFilter
public FilterNested<FilterWatchListDeletable<T,L,R>> withNewFilter()
- Specified by:
withNewFilter
in interfaceFilterWatchListDeletable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>
-
withoutFields
public FilterWatchListDeletable<T,L,R> withoutFields(Map<String,String> fields)
- Specified by:
withoutFields
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutField
public FilterWatchListDeletable<T,L,R> withoutField(String key, String value)
- Specified by:
withoutField
in interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getFieldQueryParam
public String getFieldQueryParam()
-
list
public L list()
-
submitList
public CompletableFuture<L> submitList(io.fabric8.kubernetes.api.model.ListOptions listOptions)
- Specified by:
submitList
in interfaceListerWatcher<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
list
public L list(io.fabric8.kubernetes.api.model.ListOptions listOptions)
-
delete
public List<io.fabric8.kubernetes.api.model.StatusDetails> delete()
-
deleteAll
protected List<io.fabric8.kubernetes.api.model.StatusDetails> deleteAll()
-
patchStatus
public T patchStatus(T item)
- Specified by:
patchStatus
in interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patchStatus
public T patchStatus()
- Specified by:
patchStatus
in interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch()
- Specified by:
patch
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch(PatchContext patchContext)
- Specified by:
patch
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getNonNullItem
protected T getNonNullItem()
-
withResourceVersion
public BaseOperation<T,L,R> withResourceVersion(String resourceVersion)
- Specified by:
withResourceVersion
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
withResourceVersion
in interfaceWatchAndWaitable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
submitWatch
public CompletableFuture<AbstractWatchManager<T>> submitWatch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)
- Specified by:
submitWatch
in interfaceListerWatcher<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
replace
public T replace()
-
replaceStatus
public T replaceStatus()
- Specified by:
replaceStatus
in interfaceReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch(PatchContext patchContext, String patch)
- Specified by:
patch
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch(PatchContext patchContext, T item)
- Specified by:
patch
in interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
isResourceNamespaced
public boolean isResourceNamespaced()
- Overrides:
isResourceNamespaced
in classOperationSupport
-
handleResponse
protected T handleResponse(HttpRequest.Builder requestBuilder) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
handleCreate
protected T handleCreate(T resource) throws InterruptedException, IOException
- Overrides:
handleCreate
in classCreateOnlyResourceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Throws:
InterruptedException
IOException
-
handleUpdate
protected T handleUpdate(T updated) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
handlePatch
protected T handlePatch(PatchContext context, T current, T updated) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
handleScale
public <S> S handleScale(S scaleParam, Class<S> scaleType)
-
handleDeploymentRollback
protected io.fabric8.kubernetes.api.model.Status handleDeploymentRollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback deploymentRollback)
-
handleGet
protected T handleGet(URL resourceUrl) throws IOException
- Throws:
IOException
-
item
public T item()
-
getItem
public final T getItem()
- Specified by:
getItem
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getResourceVersion
public String getResourceVersion()
-
getGracePeriodSeconds
public Long getGracePeriodSeconds()
-
getPropagationPolicy
public io.fabric8.kubernetes.api.model.DeletionPropagation getPropagationPolicy()
-
getKind
public String getKind()
- Specified by:
getKind
in interfaceOperationInfo
-
getGroup
public String getGroup()
- Specified by:
getGroup
in interfaceOperationInfo
-
getPlural
public String getPlural()
- Specified by:
getPlural
in interfaceOperationInfo
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceOperationInfo
-
getOperationType
public String getOperationType()
- Specified by:
getOperationType
in interfaceOperationInfo
-
forOperationType
public OperationInfo forOperationType(String type)
- Specified by:
forOperationType
in interfaceOperationInfo
-
withGracePeriod
public ExtensibleResource<T> withGracePeriod(long gracePeriodSeconds)
- Specified by:
withGracePeriod
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
withGracePeriod
in interfaceGracePeriodConfigurable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withPropagationPolicy
public ExtensibleResource<T> withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
- Specified by:
withPropagationPolicy
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
withPropagationPolicy
in interfacePropagationPolicyConfigurable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
updateListItems
protected L updateListItems(L list)
Updates the list items if they have missing or default apiGroupVersion values and the resource is currently using API Groups with custom version strings, or if they are generic and lack a kind
-
updateApiVersion
protected void updateApiVersion(io.fabric8.kubernetes.api.model.HasMetadata hasMetadata)
Updates the resource if it has missing or default apiGroupVersion values and the resource is currently using API Groups with custom version strings- Parameters:
hasMetadata
- object whose api version needs to be updated
-
getReadiness
public Readiness getReadiness()
-
isReady
public final boolean isReady()
-
waitUntilReady
public T waitUntilReady(long amount, TimeUnit timeUnit)
- Specified by:
waitUntilReady
in interfaceWaitable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
waitUntilCondition
public T waitUntilCondition(Predicate<T> condition, long amount, TimeUnit timeUnit)
- Specified by:
waitUntilCondition
in interfaceWaitable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
informOnCondition
public CompletableFuture<List<T>> informOnCondition(Predicate<List<T>> condition)
- Specified by:
informOnCondition
in interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
dryRun
public ExtensibleResource<T> dryRun(boolean isDryRun)
- Specified by:
dryRun
in interfaceAnyNamespaceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>
- Specified by:
dryRun
in interfaceDryRunable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
dryRun
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
fieldValidation
public ExtensibleResource<T> fieldValidation(FieldValidateable.Validation fieldValidation)
- Specified by:
fieldValidation
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
fieldValidation
in interfaceFieldValidateable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withIndexers
public ExtensibleResource<T> withIndexers(Map<String,Function<T,List<String>>> indexers)
- Specified by:
withIndexers
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
withIndexers
in interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLimit
public BaseOperation<T,L,R> withLimit(Long limit)
- Specified by:
withLimit
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
withLimit
in interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getLimit
public Long getLimit()
- Specified by:
getLimit
in interfaceListerWatcher<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
inform
public SharedIndexInformer<T> inform(ResourceEventHandler<? super T> handler, long resync)
- Specified by:
inform
in interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
runnableInformer
public SharedIndexInformer<T> runnableInformer(long resync)
- Specified by:
runnableInformer
in interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
appendListOptionParams
public URL appendListOptionParams(URL base, io.fabric8.kubernetes.api.model.ListOptions listOptions)
-
inWriteContext
public <C extends Client> C inWriteContext(Class<C> clazz)
- Specified by:
inWriteContext
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getWatchReconnectInterval
public int getWatchReconnectInterval()
- Specified by:
getWatchReconnectInterval
in interfaceListerWatcher<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
createOrReplace
public T createOrReplace(T item)
- Specified by:
createOrReplace
in interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
replace
public T replace(T item)
- Specified by:
replace
in interfaceItemReplacable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
replaceStatus
public T replaceStatus(T item)
- Specified by:
replaceStatus
in interfaceItemReplacable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
delete
public List<io.fabric8.kubernetes.api.model.StatusDetails> delete(T item)
- Specified by:
delete
in interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
dryRun
public ExtensibleResource<T> dryRun()
- Specified by:
dryRun
in interfaceAnyNamespaceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>
- Specified by:
dryRun
in interfaceDryRunable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
lockResourceVersion
public ExtensibleResource<T> lockResourceVersion()
- Specified by:
lockResourceVersion
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
lockResourceVersion
in interfaceResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
updateStatus
public T updateStatus(T item)
- Specified by:
updateStatus
in interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
create
public T create()
- Specified by:
create
in interfaceCreateOrReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getApiEndpointPath
public String getApiEndpointPath()
- Specified by:
getApiEndpointPath
in interfaceListerWatcher<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
fieldManager
public ExtensibleResource<T> fieldManager(String manager)
- Specified by:
fieldManager
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
fieldManager
in interfaceServerSideApplicable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
forceConflicts
public ExtensibleResource<T> forceConflicts()
- Specified by:
forceConflicts
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
forceConflicts
in interfaceServerSideApplicable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
serverSideApply
public T serverSideApply()
- Specified by:
serverSideApply
in interfaceServerSideApplicable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withTimeout
public ExtensibleResource<T> withTimeout(long timeout, TimeUnit unit)
- Specified by:
withTimeout
in interfaceDeletable
- Specified by:
withTimeout
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
withTimeout
in interfaceTimeoutable
- Specified by:
withTimeout
in interfaceTimeoutableScalable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
updateStatus
public T updateStatus()
- Specified by:
updateStatus
in interfaceReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
update
public T update()
-
scale
public T scale(int count)
- Specified by:
scale
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
scale
in interfaceScalable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
scale
in interfaceTimeoutableScalable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
scale
public T scale(int count, boolean wait)
-
scale
public io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale)
-
subresource
public ExtensibleResource<T> subresource(String subresource)
- Specified by:
subresource
in interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
- Specified by:
subresource
in interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
-