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>
rollingOperationContext
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
apiVersion, listType
type
apiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS
POLL_INTERVAL_MS
Constructor and Description |
---|
StatefulSetOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
StatefulSetOperationsImpl(okhttp3.OkHttpClient client,
Config config,
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
|
io.fabric8.kubernetes.api.model.apps.StatefulSet |
withReplicas(int count) |
edit, getLog, inContainer, patch, replace, rolling, scale, scale, scale, scale, watchLog, withLogWaitTimeout, withTimeout, withTimeoutInMillis
accept, createVisitableBuilder, edit, editStatus, modifyItemForReplaceOrPatch, patch, patch, patchStatus, replace, replaceStatus, requireFromServer, requireFromServer, validateOperation
cascading, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getListType, getMandatory, getOperationType, getPropagationPolicy, getReadiness, getResourceT, getResourceVersion, getRootPaths, 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, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withItem, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoff
create, create, getType
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, requestException, requestFailure, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withTimeout, withTimeoutInMillis
replace
patch, patch, patch, patch
updateStatus
editStatus
replaceStatus
patchStatus
createOrReplace
fromServer
withGracePeriod
withPropagationPolicy
lockResourceVersion
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
withResourceVersion
dryRun, dryRun
require
inform, inform, inform, informOnCondition, withIndexers
create, create
getName, getNamespace
withLabel, withoutLabel
getNamespace
public StatefulSetOperationsImpl(okhttp3.OkHttpClient client, Config config)
public StatefulSetOperationsImpl(okhttp3.OkHttpClient client, Config config, 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)
ImageEditReplacePatchable
updateImage
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)
ImageEditReplacePatchable
updateImage
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)
Loggable
public Reader getLogReader()
getLogReader
in interface Loggable<LogWatch>
public LogWatch watchLog(OutputStream out)
Loggable
watchLog
in interface Loggable<LogWatch>
out
- OutputStream
for storing logspublic io.fabric8.kubernetes.api.model.apps.StatefulSet pause()
ImageEditReplacePatchable
pause
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>
public io.fabric8.kubernetes.api.model.apps.StatefulSet resume()
ImageEditReplacePatchable
resume
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>
public io.fabric8.kubernetes.api.model.apps.StatefulSet restart()
ImageEditReplacePatchable
restart
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>
public io.fabric8.kubernetes.api.model.apps.StatefulSet undo()
ImageEditReplacePatchable
undo
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.StatefulSet>
Copyright © 2015–2020 Red Hat. All rights reserved.