Class RollableScalableResourceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>>
java.lang.Object
io.fabric8.kubernetes.client.dsl.base.OperationSupport
io.fabric8.kubernetes.client.dsl.base.BaseOperation<T,L,D,R>
io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation<T,L,D,R>
io.fabric8.kubernetes.client.dsl.internal.apps.v1.RollableScalableResourceOperation<T,L,D,R>
- All Implemented Interfaces:
AnyNamespaceable<FilterWatchListMultiDeletable<T,L,Boolean,Watch,Watcher<T>>>,Cascading<EditReplacePatchDeletable<T,T,D,Boolean>>,CascadingEditReplacePatchDeletable<T,T,D,Boolean>,Createable<T,T,D>,CreateFromServerGettable<T,T,D>,CreateOrReplaceable<T,T,D>,Deletable<Boolean>,Editable<D>,EditReplacePatchable<T,T,D>,EditReplacePatchDeletable<T,T,D,Boolean>,Filterable<FilterWatchListDeletable<T,L,Boolean,Watch,Watcher<T>>>,FilterWatchListDeletable<T,L,Boolean,Watch,Watcher<T>>,FilterWatchListMultiDeletable<T,L,Boolean,Watch,Watcher<T>>,FromServerable<Gettable<T>>,Gettable<T>,Listable<L>,Loadable<R>,Lockable<Replaceable<T,T>>,Loggable<String,LogWatch>,MixedOperation<T,L,D,R>,MultiDeleteable<T,Boolean>,Nameable<R>,Namespaceable<NonNamespaceOperation<T,L,D,R>>,NonNamespaceOperation<T,L,D,R>,Operation<T,L,D,R>,Patchable<T,T>,Readiable,Replaceable<T,T>,Requirable<T>,Resource<T,D>,Rollable<TimeoutImageEditReplacePatchable<T,T,D>>,RollableScalableResource<T,D>,ScalableResource<T,D>,Scaleable<T>,StatusUpdatable<T>,Versionable<Watchable<Watch,Watcher<T>>>,VersionWatchable<Watch,Watcher<T>>,Waitable<T,T>,Watchable<Watch,Watcher<T>>,WatchListDeletable<T,L,Boolean,Watch,Watcher<T>>,FromServerGettable<T>,GracePeriodConfigurable<Deletable<Boolean>>,OperationInfo,PropagationPolicyConfigurable<EditReplacePatchDeletable<T,T,D,Boolean>>
- Direct Known Subclasses:
DeploymentOperationsImpl,ReplicaSetOperationsImpl,ReplicationControllerOperationsImpl,StatefulSetOperationsImpl
public abstract class RollableScalableResourceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>> extends HasMetadataOperation<T,L,D,R> implements RollableScalableResource<T,D>
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_PROPAGATION_POLICYFields inherited from class io.fabric8.kubernetes.client.dsl.base.BaseOperation
apiVersion, doneableType, listType, typeFields inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
apiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPERFields 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
Modifier and Type Method Description Dedit()protected abstract intgetCurrentReplicas(T current)protected abstract intgetDesiredReplicas(T item)protected abstract longgetObservedGeneration(T current)protected abstract RollingUpdater<T,L,D>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.BaseOperation
cascading, create, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, fetchListUrl, forOperationType, fromServer, get, getApiVersion, getConfigType, getDoneableType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getPropagationPolicy, getReloadingFromServer, 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, updateApiVersionResource, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffMethods 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, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleStatusUpdate, requestException, requestFailure, unmarshal, unmarshal, unmarshalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fabric8.kubernetes.client.dsl.Createable
create, create, createNewMethods inherited from interface io.fabric8.kubernetes.client.dsl.CreateOrReplaceable
createOrReplace, createOrReplaceWithNewMethods inherited from interface io.fabric8.kubernetes.client.GracePeriodConfigurable
withGracePeriodMethods inherited from interface io.fabric8.kubernetes.client.dsl.Loggable
getLog, getLog, getLogReader, watchLog, watchLogMethods inherited from interface io.fabric8.kubernetes.client.PropagationPolicyConfigurable
withPropagationPolicyMethods inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
-
Constructor Details
-
Method Details
-
withReplicas
-
getRollingUpdater
protected abstract RollingUpdater<T,L,D> getRollingUpdater(long rollingTimeout, TimeUnit rollingTimeUnit) -
getCurrentReplicas
-
getDesiredReplicas
-
getObservedGeneration
-
scale
-
scale
-
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
- Specified by:
editin interfaceEditable<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>,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>>
-
replace
- Specified by:
replacein interfaceReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>- Overrides:
replacein classHasMetadataOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>>
-
patch
- Specified by:
patchin interfacePatchable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>- Overrides:
patchin classHasMetadataOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>>
-