public class DeploymentOperationsImpl extends RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>> implements TimeoutImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.Deployment>
Modifier and Type | Field and Description |
---|---|
static String |
DEPLOYMENT_KUBERNETES_IO_REVISION |
rollingOperationContext
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
apiVersion, listType
type
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH
Constructor and Description |
---|
DeploymentOperationsImpl(Client client) |
DeploymentOperationsImpl(RollingOperationContext context,
OperationContext superContext) |
Modifier and Type | Method and Description |
---|---|
protected List<io.fabric8.kubernetes.api.model.Container> |
getContainers(io.fabric8.kubernetes.api.model.apps.Deployment value) |
int |
getCurrentReplicas(io.fabric8.kubernetes.api.model.apps.Deployment current) |
int |
getDesiredReplicas(io.fabric8.kubernetes.api.model.apps.Deployment item) |
String |
getLog(boolean isPretty) |
InputStream |
getLogInputStream()
Returns an unclosed InputStream.
|
Reader |
getLogReader()
Returns an unclosed Reader.
|
long |
getObservedGeneration(io.fabric8.kubernetes.api.model.apps.Deployment current) |
RollingUpdater<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList> |
getRollingUpdater(long rollingTimeout,
TimeUnit rollingTimeUnit) |
TimeTailPrettyLoggable |
limitBytes(int limitBytes) |
DeploymentOperationsImpl |
newInstance(OperationContext context) |
DeploymentOperationsImpl |
newInstance(RollingOperationContext context) |
io.fabric8.kubernetes.api.model.apps.Deployment |
pause() |
io.fabric8.kubernetes.api.model.apps.Deployment |
restart() |
io.fabric8.kubernetes.api.model.apps.Deployment |
resume() |
io.fabric8.kubernetes.api.model.Status |
rollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback rollback) |
io.fabric8.kubernetes.api.model.apps.Deployment |
scale(int count) |
io.fabric8.kubernetes.api.model.apps.Deployment |
scale(int count,
boolean wait) |
TailPrettyLoggable |
sinceSeconds(int seconds) |
TailPrettyLoggable |
sinceTime(String timestamp) |
PrettyLoggable |
tailingLines(int lines) |
TimeTailPrettyLoggable |
terminated() |
io.fabric8.kubernetes.api.model.apps.Deployment |
undo() |
BytesLimitTerminateTimeTailPrettyLoggable |
usingTimestamps() |
LogWatch |
watchLog(OutputStream out) |
Loggable |
withPrettyOutput() |
io.fabric8.kubernetes.api.model.apps.Deployment |
withReplicas(int count) |
edit, getLog, inContainer, patch, replace, rolling, scale, scale, sendPatchedObject, updateImage, updateImage, watchLog, withLogWaitTimeout, withTimeout, withTimeoutInMillis
accept, edit, editStatus, modifyItemForReplaceOrPatch, patch, patch, patchStatus, replace, replace, replaceStatus, requireFromServer
appendListOptionParams, create, createOrReplace, createOrReplace, delete, delete, delete, dryRun, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getApiEndpointPath, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getKind, getLimit, getListType, getMandatory, getNonNullItem, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getVersion, getWatchReconnectInterval, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, inWriteContext, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, load, lockResourceVersion, lockResourceVersion, newResource, patch, patch, patchStatus, replaceStatus, require, resource, resources, runnableInformer, setListType, setType, submitList, submitWatch, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withLabelSelector, withLimit, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion
create, getType
addNamespacedUrlPathParts, assertResponseCode, checkName, checkNamespace, correctNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getParameters, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrlParts, handleApproveOrDeny, handleCreate, handleDelete, handleDeploymentRollback, handleGet, handleMetric, handlePatch, handlePatch, handleRawGet, handleResponse, handleResponse, handleScale, handleUpdate, requestException, requestException, requestFailure, requestFailure, restCall, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshal, waitForResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withTimeout, withTimeoutInMillis
updateImage, updateImage
accept, edit, edit, edit, editStatus, patch, patch, patch, patch, patch, patch, patchStatus
replace, replaceStatus
cascading, isReady, lockResourceVersion, lockResourceVersion, require
fromServer
withResourceVersion
waitUntilCondition, waitUntilReady
create, createOrReplace
create, createOrReplace, delete, patchStatus, updateStatus
withGracePeriod
withPropagationPolicy
replaceStatus
dryRun, dryRun
inform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimit
getFullResourceName, getName, getNamespace
delete
withLabel, withoutLabel
public static final String DEPLOYMENT_KUBERNETES_IO_REVISION
public DeploymentOperationsImpl(Client client)
public DeploymentOperationsImpl(RollingOperationContext context, OperationContext superContext)
public DeploymentOperationsImpl newInstance(OperationContext context)
newInstance
in class HasMetadataOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public DeploymentOperationsImpl newInstance(RollingOperationContext context)
newInstance
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public io.fabric8.kubernetes.api.model.apps.Deployment scale(int count)
scale
in interface ScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>
scale
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public io.fabric8.kubernetes.api.model.apps.Deployment scale(int count, boolean wait)
scale
in interface ScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>
scale
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public io.fabric8.kubernetes.api.model.Status rollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback rollback)
rollback
in interface RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>
public RollingUpdater<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList> getRollingUpdater(long rollingTimeout, TimeUnit rollingTimeUnit)
getRollingUpdater
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public io.fabric8.kubernetes.api.model.apps.Deployment withReplicas(int count)
withReplicas
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public int getCurrentReplicas(io.fabric8.kubernetes.api.model.apps.Deployment current)
getCurrentReplicas
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public int getDesiredReplicas(io.fabric8.kubernetes.api.model.apps.Deployment item)
getDesiredReplicas
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public long getObservedGeneration(io.fabric8.kubernetes.api.model.apps.Deployment current)
getObservedGeneration
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public io.fabric8.kubernetes.api.model.apps.Deployment resume()
resume
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.Deployment>
public io.fabric8.kubernetes.api.model.apps.Deployment pause()
pause
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.Deployment>
public io.fabric8.kubernetes.api.model.apps.Deployment restart()
restart
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.Deployment>
public io.fabric8.kubernetes.api.model.apps.Deployment undo()
undo
in interface ImageEditReplacePatchable<io.fabric8.kubernetes.api.model.apps.Deployment>
public Reader getLogReader()
getLogReader
in interface Loggable
public InputStream getLogInputStream()
getLogInputStream
in interface Loggable
public LogWatch watchLog(OutputStream out)
protected List<io.fabric8.kubernetes.api.model.Container> getContainers(io.fabric8.kubernetes.api.model.apps.Deployment value)
getContainers
in class RollableScalableResourceOperation<io.fabric8.kubernetes.api.model.apps.Deployment,io.fabric8.kubernetes.api.model.apps.DeploymentList,RollableScalableResource<io.fabric8.kubernetes.api.model.apps.Deployment>>
public TimeTailPrettyLoggable limitBytes(int limitBytes)
limitBytes
in interface BytesLimitTerminateTimeTailPrettyLoggable
public TimeTailPrettyLoggable terminated()
terminated
in interface BytesLimitTerminateTimeTailPrettyLoggable
public Loggable withPrettyOutput()
withPrettyOutput
in interface PrettyLoggable
public PrettyLoggable tailingLines(int lines)
tailingLines
in interface TailPrettyLoggable
public TailPrettyLoggable sinceTime(String timestamp)
sinceTime
in interface TimeTailPrettyLoggable
public TailPrettyLoggable sinceSeconds(int seconds)
sinceSeconds
in interface TimeTailPrettyLoggable
public BytesLimitTerminateTimeTailPrettyLoggable usingTimestamps()
usingTimestamps
in interface TimestampBytesLimitTerminateTimeTailPrettyLoggable
Copyright © 2015–2022 Red Hat. All rights reserved.