public class StatefulSetOperationsImpl extends RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>> implements TimeoutImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>
rollingOperationContextDEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICYapiVersion, listTypetypeapiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCHDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLISPOLL_INTERVAL_MS| Constructor and Description |
|---|
StatefulSetOperationsImpl(ClientContext clientContext) |
StatefulSetOperationsImpl(ClientContext clientContext,
String namespace) |
StatefulSetOperationsImpl(RollingOperationContext context,
OperationContext superContext) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentReplicas(io.fabric8.kubernetes.api.model.apps.StatefulSet current) |
int |
getDesiredReplicas(io.fabric8.kubernetes.api.model.apps.StatefulSet item) |
String |
getLog(Boolean isPretty)
Get logs with pretty enabled
|
Reader |
getLogReader()
Returns an unclosed Reader.
|
long |
getObservedGeneration(io.fabric8.kubernetes.api.model.apps.StatefulSet current) |
RollingUpdater<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList> |
getRollingUpdater(long rollingTimeout,
TimeUnit rollingTimeUnit) |
StatefulSetOperationsImpl |
newInstance(OperationContext context) |
StatefulSetOperationsImpl |
newInstance(RollingOperationContext context) |
io.fabric8.kubernetes.api.model.apps.StatefulSet |
pause()
Mark the provided resource as paused
|
io.fabric8.kubernetes.api.model.apps.StatefulSet |
restart()
Restart a resource.
|
io.fabric8.kubernetes.api.model.apps.StatefulSet |
resume()
Resume a paused resource.
|
io.fabric8.kubernetes.api.model.Status |
rollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback deploymentRollback) |
io.fabric8.kubernetes.api.model.apps.StatefulSet |
undo()
Rollback to previous rollout.
|
io.fabric8.kubernetes.api.model.apps.StatefulSet |
updateImage(Map<String,String> containerToImageMap)
Update existing container image(s) of resources
|
io.fabric8.kubernetes.api.model.apps.StatefulSet |
updateImage(String image)
Update existing container image of single container resource
|
LogWatch |
watchLog(OutputStream out)
Watch logs of resource and put them inside OutputStream inside
if the OutputStream is a PipedOutputStream, it will be closed when the Watch terminates |
io.fabric8.kubernetes.api.model.apps.StatefulSet |
withReplicas(int count) |
edit, getLog, inContainer, patch, replace, rolling, scale, scale, scale, scale, watchLog, withLogWaitTimeout, withTimeout, withTimeoutInMillisaccept, createVisitableBuilder, edit, editStatus, modifyItemForReplaceOrPatch, patch, patch, patchStatus, replace, replaceStatus, requireFromServer, requireFromServer, validateOperationappendListOptionParams, cascading, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getKind, getLabelQueryParam, getLimit, getListType, getMandatory, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getVersion, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, load, lockResourceVersion, require, runnableInformer, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withItem, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withLabelSelector, withLimit, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffcreate, create, getTypeassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleRawGet, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, requestException, requestException, requestFailure, requestFailure, restCall, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithTimeout, withTimeoutInMillisreplacepatch, patch, patch, patchupdateStatuseditStatusreplaceStatuspatchStatusfromServerlockResourceVersionwaitUntilCondition, waitUntilReady, withWaitRetryBackoffwithResourceVersioncreateOrReplacewithGracePeriodwithPropagationPolicydryRun, dryRunrequireinform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimitcreate, creategetFullResourceName, getName, getNamespacewithLabel, withoutLabelgetNamespacepublic StatefulSetOperationsImpl(ClientContext clientContext)
public StatefulSetOperationsImpl(ClientContext clientContext, String namespace)
public StatefulSetOperationsImpl(RollingOperationContext context, OperationContext superContext)
public StatefulSetOperationsImpl newInstance(OperationContext context)
newInstance in class HasMetadataOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public StatefulSetOperationsImpl newInstance(RollingOperationContext context)
newInstance in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public io.fabric8.kubernetes.api.model.apps.StatefulSet withReplicas(int count)
withReplicas in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public RollingUpdater<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList> getRollingUpdater(long rollingTimeout, TimeUnit rollingTimeUnit)
getRollingUpdater in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public int getCurrentReplicas(io.fabric8.kubernetes.api.model.apps.StatefulSet current)
getCurrentReplicas in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public int getDesiredReplicas(io.fabric8.kubernetes.api.model.apps.StatefulSet item)
getDesiredReplicas in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public long getObservedGeneration(io.fabric8.kubernetes.api.model.apps.StatefulSet current)
getObservedGeneration in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.StatefulSet,io.fabric8.kubernetes.api.model.apps.StatefulSetList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public io.fabric8.kubernetes.api.model.apps.StatefulSet updateImage(Map<String,String> containerToImageMap)
ImageEditReplacePatchableupdateImage in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>containerToImageMap - Map with keys as container name and value as imagepublic io.fabric8.kubernetes.api.model.apps.StatefulSet updateImage(String image)
ImageEditReplacePatchableupdateImage in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>image - image to be updatedpublic io.fabric8.kubernetes.api.model.Status rollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback deploymentRollback)
rollback in interface Rollable<TimeoutImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public String getLog(Boolean isPretty)
Loggablepublic Reader getLogReader()
getLogReader in interface Loggable<LogWatch>public LogWatch watchLog(OutputStream out)
LoggablewatchLog in interface Loggable<LogWatch>out - OutputStream for storing logspublic io.fabric8.kubernetes.api.model.apps.StatefulSet pause()
ImageEditReplacePatchablepause in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>public io.fabric8.kubernetes.api.model.apps.StatefulSet resume()
ImageEditReplacePatchableresume in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>public io.fabric8.kubernetes.api.model.apps.StatefulSet restart()
ImageEditReplacePatchablerestart in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>public io.fabric8.kubernetes.api.model.apps.StatefulSet undo()
ImageEditReplacePatchableundo in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>Copyright © 2015–2022 Red Hat. All rights reserved.