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.base.OperationSupport
-
- io.fabric8.kubernetes.client.dsl.base.BaseOperation<T,L,R>
-
- io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation<T,L,R>
-
- io.fabric8.kubernetes.client.dsl.internal.apps.v1.RollableScalableResourceOperation<T,L,R>
-
- All Implemented Interfaces:
AnyNamespaceable<FilterWatchListMultiDeletable<T,L>>,Cascading<EditReplacePatchDeletable<T>>,CascadingEditReplacePatchDeletable<T>,Createable<T>,CreateFromServerGettable<T>,CreateOrReplaceable<T>,Deletable,DryRunable<WritableOperation<T>>,Editable<T>,EditReplacePatchable<T>,EditReplacePatchDeletable<T>,Filterable<FilterWatchListDeletable<T,L>>,FilterWatchListDeletable<T,L>,FilterWatchListMultiDeletable<T,L>,FromServerable<Gettable<T>>,Gettable<T>,Listable<L>,Loadable<R>,Lockable<Replaceable<T>>,Loggable<LogWatch>,MixedOperation<T,L,R>,MultiDeleteable<T>,Nameable<R>,Namespaceable<NonNamespaceOperation<T,L,R>>,NonNamespaceOperation<T,L,R>,Operation<T,L,R>,Patchable<T>,Readiable,Replaceable<T>,Requirable<T>,Resource<T>,Rollable<TimeoutImageEditReplacePatchable<T>>,RollableScalableResource<T>,ScalableResource<T>,Scaleable<T>,StatusUpdatable<T>,Versionable<WatchAndWaitable<T>>,VersionWatchAndWaitable<T>,Waitable<T,T>,Watchable<Watcher<T>>,WatchAndWaitable<T>,WatchListDeletable<T,L>,WritableOperation<T>,FromServerGettable<T>,GracePeriodConfigurable<Deletable>,OperationInfo,PropagationPolicyConfigurable<EditReplacePatchDeletable<T>>
- Direct Known Subclasses:
DeploymentOperationsImpl,DeploymentOperationsImpl,ReplicaSetOperationsImpl,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>
Operations for resources that represent scalable, rolling-updatable sets of Pods.
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.BaseOperation
apiVersion, listType, type
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
apiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
-
Fields inherited from interface io.fabric8.kubernetes.client.dsl.Scaleable
POLL_INTERVAL_MS
-
Fields inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS
-
-
Constructor Summary
Constructors Constructor Description RollableScalableResourceOperation(RollingOperationContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tedit(UnaryOperator<T> function)protected abstract intgetCurrentReplicas(T current)protected abstract intgetDesiredReplicas(T item)protected abstract longgetObservedGeneration(T current)protected abstract RollingUpdater<T,L>getRollingUpdater(long rollingTimeout, TimeUnit rollingTimeUnit)Tpatch(T t)Treplace(T t)io.fabric8.kubernetes.api.model.autoscaling.v1.Scalescale()Tscale(int count)Tscale(int count, boolean wait)io.fabric8.kubernetes.api.model.autoscaling.v1.Scalescale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scaleParam)protected abstract TwithReplicas(int count)-
Methods inherited from class io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation
accept
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.base.BaseOperation
cascading, create, create, createOrReplace, delete, delete, delete, dryRun, edit, edit, fetchListUrl, forOperationType, fromServer, get, getApiVersion, getConfigType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getPropagationPolicy, getReadiness, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handlePatch, handleReplace, handleResponse, handleScale, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, load, lockResourceVersion, newInstance, require, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withInvolvedObject, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoff
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceUrl, getResourceUrl, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleStatusUpdate, requestException, requestFailure, unmarshal, unmarshal, unmarshal
-
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.Createable
create, create
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.CreateOrReplaceable
createOrReplace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.DryRunable
dryRun, dryRun
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.FromServerable
fromServer
-
Methods inherited from interface io.fabric8.kubernetes.client.GracePeriodConfigurable
withGracePeriod
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Lockable
lockResourceVersion
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Loggable
getLog, getLog, getLogReader, watchLog, watchLog, withLogWaitTimeout
-
Methods inherited from interface io.fabric8.kubernetes.client.OperationInfo
getName, getNamespace
-
Methods inherited from interface io.fabric8.kubernetes.client.PropagationPolicyConfigurable
withPropagationPolicy
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Requirable
require
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.StatusUpdatable
updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Versionable
withResourceVersion
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
-
-
-
-
Constructor Detail
-
RollableScalableResourceOperation
public RollableScalableResourceOperation(RollingOperationContext context)
-
-
Method Detail
-
withReplicas
protected abstract T withReplicas(int count)
-
getRollingUpdater
protected abstract RollingUpdater<T,L> getRollingUpdater(long rollingTimeout, TimeUnit rollingTimeUnit)
-
getCurrentReplicas
protected abstract int getCurrentReplicas(T current)
-
getDesiredReplicas
protected abstract int getDesiredReplicas(T item)
-
getObservedGeneration
protected abstract long getObservedGeneration(T current)
-
scale
public T scale(int count)
-
scale
public T scale(int count, boolean wait)
-
scale
public io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale()
-
scale
public io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scaleParam)
-
edit
public T edit(UnaryOperator<T> function)
-
-