Class RollableScalableResourceOperation<T extends HasMetadata,L extends 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>
-
- io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation<T,L,R>
-
- io.fabric8.kubernetes.client.dsl.internal.apps.v1.RollableScalableResourceOperation<T,L,R>
-
- All Implemented Interfaces:
AnyNamespaceable<AnyNamespaceOperation<T,L,R>>,AnyNamespaceOperation<T,L,R>,BytesLimitTerminateTimeTailPrettyLoggable,Containerable<String,Loggable>,CreateOrReplaceable<T>,CreateOrReplaceDeletable<T>,Deletable,DeletableWithOptions,DryRunable<WritableOperation<T>>,EditReplacePatchable<T>,FieldValidateable<NonDeletingOperation<T>>,Filterable<FilterWatchListDeletable<T,L,R>>,FilterWatchListDeletable<T,L,R>,Gettable<T>,ImageEditReplacePatchable<T>,ImageUpdateable<T>,Informable<T>,InOutCreateable<T,T>,ItemReplacable<T>,ItemWritableOperation<T>,Listable<L>,Loggable,MetadataGettable,MetadataListable,MixedOperation<T,L,R>,Nameable<R>,Namespaceable<NonNamespaceOperation<T,L,R>>,NonDeletingOperation<T>,NonNamespaceOperation<T,L,R>,PrettyLoggable,Replaceable<T>,ReplaceDeletable<T>,Resource<T>,RollableScalableResource<T>,Scalable<T>,ScalableResource<T>,ServerSideApplicable<T>,TableGettable,TableListable,TailPrettyLoggable,Timeoutable,TimeoutableScalable<T>,TimeoutImageEditReplacePatchable<T>,TimestampBytesLimitTerminateTimeTailPrettyLoggable,TimeTailPrettyLoggable,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:
DeploymentOperationsImpl,LegacyRollableScalableResourceOperation,ReplicaSetOperationsImpl,ReplicationControllerOperationsImpl,StatefulSetOperationsImpl
public abstract class RollableScalableResourceOperation<T extends HasMetadata,L extends KubernetesResourceList<T>,R extends Resource<T>> extends HasMetadataOperation<T,L,R> implements RollableScalableResource<T>, TimeoutImageEditReplacePatchable<T>
Operations for resources that represent scalable, rolling-updatable sets of Pods.
-
-
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 PodOperationContextrollingOperationContext-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.BaseOperation
apiVersion, 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 protectedRollableScalableResourceOperation(PodOperationContext context, OperationContext superContext, Class<T> type, Class<L> listType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tedit(UnaryOperator<T> function)protected abstract List<Container>getContainers(T value)StringgetLog()protected abstract RollingUpdater<T,L>getRollingUpdater(long rollingTimeout, TimeUnit rollingTimeUnit)LoggableinContainer(String id)abstract RollableScalableResourceOperation<T,L,R>newInstance(PodOperationContext context, OperationContext superContext)Tpause()Trestart()Tresume()TimeoutImageEditReplacePatchable<T>rolling()protected TsendPatchedObject(T oldObject, T updatedObject)Tundo()TupdateImage(String image)TupdateImage(Map<String,String> containerToImageMap)LogWatchwatchLog()LoggablewithLogWaitTimeout(Integer logWaitTimeout)LoggablewithReadyWaitTimeout(Integer timeout)RollableScalableResourceOperation<T,L,R>withTimeout(long timeout, TimeUnit unit)RollableScalableResourceOperation<T,L,R>withTimeoutInMillis(long timeoutInMillis)-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation
accept, edit, editStatus, handleReplace, modifyItemForReplaceOrPatch, newInstance, patch, patch, patch, patch, patch, patchStatus, patchStatus, replace, replaceStatus, scale, scale, scale, update, update, updateStatus, waitUntilScaled
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.BaseOperation
appendListOptionParams, create, createOr, createOrReplace, createOrReplace, delete, delete, delete, deleteAll, dryRun, dryRun, edit, fetchListUrl, fieldManager, fieldValidation, forceConflicts, forOperationType, fromServer, get, getApiEndpointPath, getAsPartialObjectMetadata, getAsTable, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getItemOrRequireFromServer, getKind, getLimit, getListType, getNonNullItem, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getVersion, getWatchReconnectInterval, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, inWriteContext, isReady, isResourceNamespaced, item, list, list, list, listAsPartialObjectMetadata, listAsPartialObjectMetadata, listAsTable, listAsTable, load, load, load, load, lockResourceVersion, lockResourceVersion, newResource, replace, replaceStatus, require, requireFromServer, resource, resources, runnableInformer, serverSideApply, setListType, setType, submitList, submitWatch, subresource, unlock, updateApiVersion, updateListItems, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withLabelSelector, withLimit, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion
-
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.BytesLimitTerminateTimeTailPrettyLoggable
limitBytes, terminated
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.CreateOrReplaceable
create, createOrReplace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.DryRunable
dryRun
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.EditReplacePatchable
accept, edit, edit, patch, patch, patch, patch, patch, patch
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Filterable
withLabel, withoutLabel
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Informable
inform, inform, inform, informOnCondition, runnableInformer
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ItemReplacable
replace, replaceStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ItemWritableOperation
create, createOrReplace, delete, patchStatus, updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.informers.impl.ListerWatcher
getConfig
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Loggable
getLog, getLogInputStream, getLogReader, watchLog
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.MetadataGettable
getAsPartialObjectMetadata
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.NonDeletingOperation
createOr, editStatus, patchStatus, status
-
Methods inherited from interface io.fabric8.kubernetes.client.OperationInfo
getFullResourceName, getName, getNamespace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.PrettyLoggable
withPrettyOutput
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Replaceable
replaceStatus, updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Resource
cascading, isReady, item, require
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.RollableScalableResource
rollback
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ServerSideApplicable
serverSideApply
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TableGettable
getAsTable
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TailPrettyLoggable
tailingLines
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TimeoutableScalable
scale
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TimestampBytesLimitTerminateTimeTailPrettyLoggable
usingTimestamps
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.TimeTailPrettyLoggable
sinceSeconds, sinceTime
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
waitUntilCondition, waitUntilReady
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Watchable
streamingList, watch, watch, watch
-
-
-
-
Field Detail
-
rollingOperationContext
protected final PodOperationContext rollingOperationContext
-
-
Constructor Detail
-
RollableScalableResourceOperation
protected RollableScalableResourceOperation(PodOperationContext context, OperationContext superContext, Class<T> type, Class<L> listType)
-
-
Method Detail
-
getRollingUpdater
protected abstract RollingUpdater<T,L> getRollingUpdater(long rollingTimeout, TimeUnit rollingTimeUnit)
-
edit
public T edit(UnaryOperator<T> function)
- Specified by:
editin interfaceEditReplacePatchable<T extends HasMetadata>- Specified by:
editin interfaceImageEditReplacePatchable<T extends HasMetadata>- Overrides:
editin classHasMetadataOperation<T extends HasMetadata,L extends KubernetesResourceList<T>,R extends Resource<T>>
-
newInstance
public abstract RollableScalableResourceOperation<T,L,R> newInstance(PodOperationContext context, OperationContext superContext)
-
withLogWaitTimeout
public Loggable withLogWaitTimeout(Integer logWaitTimeout)
- Specified by:
withLogWaitTimeoutin interfaceLoggable
-
withReadyWaitTimeout
public Loggable withReadyWaitTimeout(Integer timeout)
- Specified by:
withReadyWaitTimeoutin interfaceLoggable
-
inContainer
public Loggable inContainer(String id)
- Specified by:
inContainerin interfaceContainerable<T extends HasMetadata,L extends KubernetesResourceList<T>>
-
rolling
public TimeoutImageEditReplacePatchable<T> rolling()
- Specified by:
rollingin interfaceRollableScalableResource<T extends HasMetadata>
-
updateImage
public T updateImage(String image)
- Specified by:
updateImagein interfaceImageEditReplacePatchable<T extends HasMetadata>- Specified by:
updateImagein interfaceImageUpdateable<T extends HasMetadata>
-
updateImage
public T updateImage(Map<String,String> containerToImageMap)
- Specified by:
updateImagein interfaceImageEditReplacePatchable<T extends HasMetadata>- Specified by:
updateImagein interfaceImageUpdateable<T extends HasMetadata>
-
withTimeout
public RollableScalableResourceOperation<T,L,R> withTimeout(long timeout, TimeUnit unit)
- Specified by:
withTimeoutin interfaceCreateOrReplaceDeletable<T extends HasMetadata>- Specified by:
withTimeoutin interfaceDeletable- Specified by:
withTimeoutin interfaceExtensibleResource<T extends HasMetadata>- Specified by:
withTimeoutin interfaceScalableResource<T extends HasMetadata>- Specified by:
withTimeoutin interfaceTimeoutable- Specified by:
withTimeoutin interfaceTimeoutableScalable<T extends HasMetadata>- Specified by:
withTimeoutin interfaceTimeoutImageEditReplacePatchable<T extends HasMetadata>- Overrides:
withTimeoutin classBaseOperation<T extends HasMetadata,L extends KubernetesResourceList<T>,R extends Resource<T>>
-
withTimeoutInMillis
public RollableScalableResourceOperation<T,L,R> withTimeoutInMillis(long timeoutInMillis)
- Specified by:
withTimeoutInMillisin interfaceCreateOrReplaceDeletable<T extends HasMetadata>- Specified by:
withTimeoutInMillisin interfaceDeletable- Specified by:
withTimeoutInMillisin interfaceExtensibleResource<T extends HasMetadata>- Specified by:
withTimeoutInMillisin interfaceScalableResource<T extends HasMetadata>- Specified by:
withTimeoutInMillisin interfaceTimeoutable- Specified by:
withTimeoutInMillisin interfaceTimeoutableScalable<T extends HasMetadata>- Specified by:
withTimeoutInMillisin interfaceTimeoutImageEditReplacePatchable<T extends HasMetadata>
-
pause
public T pause()
- Specified by:
pausein interfaceImageEditReplacePatchable<T extends HasMetadata>- Specified by:
pausein interfaceTimeoutImageEditReplacePatchable<T extends HasMetadata>
-
resume
public T resume()
- Specified by:
resumein interfaceImageEditReplacePatchable<T extends HasMetadata>- Specified by:
resumein interfaceTimeoutImageEditReplacePatchable<T extends HasMetadata>
-
restart
public T restart()
- Specified by:
restartin interfaceImageEditReplacePatchable<T extends HasMetadata>- Specified by:
restartin interfaceTimeoutImageEditReplacePatchable<T extends HasMetadata>
-
undo
public T undo()
- Specified by:
undoin interfaceImageEditReplacePatchable<T extends HasMetadata>- Specified by:
undoin interfaceTimeoutImageEditReplacePatchable<T extends HasMetadata>
-
-