Class RollableScalableResourceOperation<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>
-
- 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>,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,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>,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 io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.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
-
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, 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, 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.dsl.Loggable
getLog, getLogInputStream, getLogReader, watchLog
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.NonDeletingOperation
createOr, editStatus, patchStatus
-
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.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
-
-
-
-
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 io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
editin interfaceImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Overrides:
editin classHasMetadataOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.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 io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
-
rolling
public TimeoutImageEditReplacePatchable<T> rolling()
- Specified by:
rollingin interfaceRollableScalableResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
updateImage
public T updateImage(String image)
- Specified by:
updateImagein interfaceImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
updateImagein interfaceImageUpdateable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getContainers
protected abstract List<io.fabric8.kubernetes.api.model.Container> getContainers(T value)
-
updateImage
public T updateImage(Map<String,String> containerToImageMap)
- Specified by:
updateImagein interfaceImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
updateImagein interfaceImageUpdateable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withTimeout
public RollableScalableResourceOperation<T,L,R> 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>- Specified by:
withTimeoutin interfaceTimeoutImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Overrides:
withTimeoutin classBaseOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>
-
withTimeoutInMillis
public RollableScalableResourceOperation<T,L,R> withTimeoutInMillis(long timeoutInMillis)
- Specified by:
withTimeoutInMillisin interfaceDeletable- Specified by:
withTimeoutInMillisin interfaceExtensibleResource<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withTimeoutInMillisin interfaceTimeoutable- Specified by:
withTimeoutInMillisin interfaceTimeoutableScalable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
withTimeoutInMillisin interfaceTimeoutImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
pause
public T pause()
- Specified by:
pausein interfaceImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
pausein interfaceTimeoutImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
resume
public T resume()
- Specified by:
resumein interfaceImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
resumein interfaceTimeoutImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
restart
public T restart()
- Specified by:
restartin interfaceImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
restartin interfaceTimeoutImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
undo
public T undo()
- Specified by:
undoin interfaceImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Specified by:
undoin interfaceTimeoutImageEditReplacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
-