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>
DEFAULT_PROPAGATION_POLICYapiVersion, listType, typeapiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPERDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLISPOLL_INTERVAL_MS| Constructor and Description |
|---|
StatefulSetOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
StatefulSetOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace) |
StatefulSetOperationsImpl(RollingOperationContext context) |
| 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()
Get logs of a resource
|
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) |
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) |
StatefulSetOperationsImpl |
rolling() |
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()
Watch logs of a resource
|
LogWatch |
watchLog(OutputStream out)
Watch logs of resource and put them inside OutputStream inside
|
Loggable<LogWatch> |
withLogWaitTimeout(Integer logWaitTimeout)
While waiting for Pod logs, how long shall we wait until a Pod
becomes ready and starts producing logs
|
io.fabric8.kubernetes.api.model.apps.StatefulSet |
withReplicas(int count) |
ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet> |
withTimeout(long timeout,
TimeUnit unit) |
ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet> |
withTimeoutInMillis(long timeoutInMillis) |
edit, patch, replace, scale, scale, scale, scaleacceptcascading, create, create, createOrReplace, delete, delete, delete, fetchListUrl, forOperationType, fromServer, get, getApiVersion, getConfigType, 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, 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, withWaitRetryBackoffassertResponseCode, 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, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreplaceupdateStatuscreateOrReplacecreate, createfromServerwithGracePeriodwithPropagationPolicylockResourceVersionwaitUntilCondition, waitUntilReady, withWaitRetryBackoffwithResourceVersionrequiregetName, getNamespacepublic StatefulSetOperationsImpl(okhttp3.OkHttpClient client,
Config config)
public StatefulSetOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace)
public StatefulSetOperationsImpl(RollingOperationContext context)
public StatefulSetOperationsImpl newInstance(OperationContext context)
newInstance in class BaseOperation<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 StatefulSetOperationsImpl rolling()
rolling in interface Rollable<TimeoutImageEditReplacePatchable<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 ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet> withTimeout(long timeout, TimeUnit unit)
withTimeout in interface Timeoutable<ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet> withTimeoutInMillis(long timeoutInMillis)
withTimeoutInMillis in interface Timeoutable<ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>>public 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()
Loggablepublic LogWatch watchLog(OutputStream out)
LoggablewatchLog in interface Loggable<LogWatch>out - OutputStream for storing logspublic Loggable<LogWatch> withLogWaitTimeout(Integer logWaitTimeout)
LoggablewithLogWaitTimeout in interface Loggable<LogWatch>logWaitTimeout - timeout in millisecondsLoggable for fetching 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–2020 Red Hat. All rights reserved.