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 StringapiVersionprotected 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 protectedBaseOperation(OperationContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Taccept(Consumer<T> consumer)URLappendListOptionParams(URL base, io.fabric8.kubernetes.api.model.ListOptions listOptions)Tcreate()TcreateOr(Function<NonDeletingOperation<T>,T> conflictAction)TcreateOrReplace()TcreateOrReplace(T item)List<io.fabric8.kubernetes.api.model.StatusDetails>delete()booleandelete(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)Tedit(io.fabric8.kubernetes.api.builder.Visitor... visitors)<V> Tedit(Class<V> visitorType, io.fabric8.kubernetes.api.builder.Visitor<V> visitor)Tedit(UnaryOperator<T> function)TeditStatus(UnaryOperator<T> function)protected URLfetchListUrl(URL url, io.fabric8.kubernetes.api.model.ListOptions listOptions)ExtensibleResource<T>fieldManager(String manager)ExtensibleResource<T>fieldValidation(FieldValidateable.Validation fieldValidation)ExtensibleResource<T>forceConflicts()OperationInfoforOperationType(String type)BaseOperation<T,L,R>fromServer()Tget()StringgetApiEndpointPath()protected Class<? extends Config>getConfigType()StringgetFieldQueryParam()LonggetGracePeriodSeconds()StringgetGroup()TgetItem()TgetItemOrRequireFromServer()Return the context item or retrieves the remote itemStringgetKind()LonggetLimit()Class<L>getListType()protected TgetNonNullItem()StringgetOperationType()StringgetPlural()io.fabric8.kubernetes.api.model.DeletionPropagationgetPropagationPolicy()ReadinessgetReadiness()StringgetResourceVersion()StringgetVersion()intgetWatchReconnectInterval()protected ThandleCreate(T resource)protected io.fabric8.kubernetes.api.model.StatushandleDeploymentRollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback deploymentRollback)protected ThandleGet(URL resourceUrl)protected ThandlePatch(PatchContext context, T current, T updated)protected ThandleResponse(HttpRequest.Builder requestBuilder)<S> ShandleScale(S scaleParam, Class<S> scaleType)protected ThandleUpdate(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)booleanisReady()booleanisResourceNamespaced()Titem()Llist()Llist(io.fabric8.kubernetes.api.model.ListOptions listOptions)Llist(Integer limitVal, String continueVal)Rload(File file)Rload(InputStream is)Rload(String path)Rload(URL url)ExtensibleResource<T>lockResourceVersion()ExtensibleResource<T>lockResourceVersion(String resourceVersion)BaseOperation<T,L,R>newInstance(OperationContext context)protected RnewResource(OperationContext context)Tpatch()Tpatch(PatchContext patchContext)Tpatch(PatchContext patchContext, String patch)Tpatch(PatchContext patchContext, T item)TpatchStatus()TpatchStatus(T item)Treplace()Treplace(T item)TreplaceStatus()TreplaceStatus(T item)Trequire()protected TrequireFromServer()Get the current item from the server
Will always return non-null or throw an exception.Rresource(T item)Stream<R>resources()SharedIndexInformer<T>runnableInformer(long resync)Tscale(int count)Tscale(int count, boolean wait)io.fabric8.kubernetes.api.model.autoscaling.v1.Scalescale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale)TserverSideApply()voidsetListType(Class<L> listType)voidsetType(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()Tupdate()protected voidupdateApiVersion(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 LupdateListItems(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 kindTupdateStatus()TupdateStatus(T item)TwaitUntilCondition(Predicate<T> condition, long amount, TimeUnit timeUnit)TwaitUntilReady(long amount, TimeUnit timeUnit)Watchwatch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)Watchwatch(Watcher<T> watcher)Watchwatch(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)RwithName(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 aResourceNotFoundExceptionexception which for some reason is not aKubernetesClientException
-
edit
public T edit(UnaryOperator<T> function)
- Specified by:
editin interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
editStatus
public T editStatus(UnaryOperator<T> function)
- Specified by:
editStatusin interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
edit
public T edit(io.fabric8.kubernetes.api.builder.Visitor... visitors)
- Specified by:
editin 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:
editin interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
accept
public T accept(Consumer<T> consumer)
- Specified by:
acceptin interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
lockResourceVersion
public ExtensibleResource<T> lockResourceVersion(String resourceVersion)
- Specified by:
lockResourceVersionin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
lockResourceVersionin interfaceResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
inNamespace
public BaseOperation<T,L,R> inNamespace(String namespace)
- Specified by:
inNamespacein interfaceNamespaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
inAnyNamespace
public BaseOperation<T,L,R> inAnyNamespace()
- Specified by:
inAnyNamespacein interfaceAnyNamespaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
load
public R load(InputStream is)
-
fromServer
public BaseOperation<T,L,R> fromServer()
- Specified by:
fromServerin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
fromServerin interfaceFromServerGettable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
createOrReplace
public final T createOrReplace()
- Specified by:
createOrReplacein interfaceCreateOrReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
createOr
public T createOr(Function<NonDeletingOperation<T>,T> conflictAction)
- Specified by:
createOrin interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
unlock
public ExtensibleResource<T> unlock()
- Specified by:
unlockin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
unlockin interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabels
public FilterWatchListDeletable<T,L,R> withLabels(Map<String,String> labels)
- Specified by:
withLabelsin 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:
withLabelSelectorin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutLabels
public FilterWatchListDeletable<T,L,R> withoutLabels(Map<String,String> labels)
- Specified by:
withoutLabelsin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelIn
public FilterWatchListDeletable<T,L,R> withLabelIn(String key, String... values)
- Specified by:
withLabelInin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelNotIn
public FilterWatchListDeletable<T,L,R> withLabelNotIn(String key, String... values)
- Specified by:
withLabelNotInin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabel
public FilterWatchListDeletable<T,L,R> withLabel(String key, String value)
- Specified by:
withLabelin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutLabel
public FilterWatchListDeletable<T,L,R> withoutLabel(String key, String value)
- Specified by:
withoutLabelin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelSelector
public FilterWatchListDeletable<T,L,R> withLabelSelector(String selectorAsString)
- Specified by:
withLabelSelectorin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withFields
public FilterWatchListDeletable<T,L,R> withFields(Map<String,String> fields)
- Specified by:
withFieldsin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withField
public FilterWatchListDeletable<T,L,R> withField(String key, String value)
- Specified by:
withFieldin 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:
withInvolvedObjectin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withNewFilter
public FilterNested<FilterWatchListDeletable<T,L,R>> withNewFilter()
- Specified by:
withNewFilterin 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:
withoutFieldsin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutField
public FilterWatchListDeletable<T,L,R> withoutField(String key, String value)
- Specified by:
withoutFieldin 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:
submitListin 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:
patchStatusin interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patchStatus
public T patchStatus()
- Specified by:
patchStatusin interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch()
- Specified by:
patchin interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch(PatchContext patchContext)
- Specified by:
patchin interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getNonNullItem
protected T getNonNullItem()
-
withResourceVersion
public BaseOperation<T,L,R> withResourceVersion(String resourceVersion)
- Specified by:
withResourceVersionin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withResourceVersionin 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:
submitWatchin 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:
replaceStatusin interfaceReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch(PatchContext patchContext, String patch)
- Specified by:
patchin interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
patch
public T patch(PatchContext patchContext, T item)
- Specified by:
patchin interfaceEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
isResourceNamespaced
public boolean isResourceNamespaced()
- Overrides:
isResourceNamespacedin classOperationSupport
-
handleResponse
protected T handleResponse(HttpRequest.Builder requestBuilder) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
handleCreate
protected T handleCreate(T resource) throws InterruptedException, IOException
- Overrides:
handleCreatein classCreateOnlyResourceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,T extends io.fabric8.kubernetes.api.model.HasMetadata>- Throws:
InterruptedExceptionIOException
-
handleUpdate
protected T handleUpdate(T updated) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
handlePatch
protected T handlePatch(PatchContext context, T current, T updated) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
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:
getItemin 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:
getKindin interfaceOperationInfo
-
getGroup
public String getGroup()
- Specified by:
getGroupin interfaceOperationInfo
-
getPlural
public String getPlural()
- Specified by:
getPluralin interfaceOperationInfo
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceOperationInfo
-
getOperationType
public String getOperationType()
- Specified by:
getOperationTypein interfaceOperationInfo
-
forOperationType
public OperationInfo forOperationType(String type)
- Specified by:
forOperationTypein interfaceOperationInfo
-
withGracePeriod
public ExtensibleResource<T> withGracePeriod(long gracePeriodSeconds)
- Specified by:
withGracePeriodin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withGracePeriodin interfaceGracePeriodConfigurable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withPropagationPolicy
public ExtensibleResource<T> withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
- Specified by:
withPropagationPolicyin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withPropagationPolicyin 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:
waitUntilReadyin 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:
waitUntilConditionin 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:
informOnConditionin interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
dryRun
public ExtensibleResource<T> dryRun(boolean isDryRun)
- Specified by:
dryRunin interfaceAnyNamespaceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>- Specified by:
dryRunin interfaceDryRunable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
dryRunin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
fieldValidation
public ExtensibleResource<T> fieldValidation(FieldValidateable.Validation fieldValidation)
- Specified by:
fieldValidationin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
fieldValidationin interfaceFieldValidateable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withIndexers
public ExtensibleResource<T> withIndexers(Map<String,Function<T,List<String>>> indexers)
- Specified by:
withIndexersin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withIndexersin interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLimit
public BaseOperation<T,L,R> withLimit(Long limit)
- Specified by:
withLimitin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withLimitin interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getLimit
public Long getLimit()
- Specified by:
getLimitin 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:
informin interfaceInformable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
runnableInformer
public SharedIndexInformer<T> runnableInformer(long resync)
- Specified by:
runnableInformerin 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:
inWriteContextin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getWatchReconnectInterval
public int getWatchReconnectInterval()
- Specified by:
getWatchReconnectIntervalin 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:
createOrReplacein interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
replace
public T replace(T item)
- Specified by:
replacein interfaceItemReplacable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
replaceStatus
public T replaceStatus(T item)
- Specified by:
replaceStatusin interfaceItemReplacable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
delete
public List<io.fabric8.kubernetes.api.model.StatusDetails> delete(T item)
- Specified by:
deletein interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
dryRun
public ExtensibleResource<T> dryRun()
- Specified by:
dryRunin interfaceAnyNamespaceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>- Specified by:
dryRunin interfaceDryRunable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
lockResourceVersion
public ExtensibleResource<T> lockResourceVersion()
- Specified by:
lockResourceVersionin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
lockResourceVersionin interfaceResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
updateStatus
public T updateStatus(T item)
- Specified by:
updateStatusin interfaceItemWritableOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
create
public T create()
- Specified by:
createin interfaceCreateOrReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getApiEndpointPath
public String getApiEndpointPath()
- Specified by:
getApiEndpointPathin 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:
fieldManagerin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
fieldManagerin interfaceServerSideApplicable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
forceConflicts
public ExtensibleResource<T> forceConflicts()
- Specified by:
forceConflictsin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
forceConflictsin interfaceServerSideApplicable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
serverSideApply
public T serverSideApply()
- Specified by:
serverSideApplyin interfaceServerSideApplicable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withTimeout
public ExtensibleResource<T> withTimeout(long timeout, TimeUnit unit)
- Specified by:
withTimeoutin interfaceDeletable- Specified by:
withTimeoutin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withTimeoutin interfaceTimeoutable- Specified by:
withTimeoutin interfaceTimeoutableScalable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
updateStatus
public T updateStatus()
- Specified by:
updateStatusin interfaceReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
update
public T update()
-
scale
public T scale(int count)
- Specified by:
scalein interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
scalein interfaceScalable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
scalein 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:
subresourcein interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
subresourcein interfaceNonDeletingOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
-