public class PodOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource> implements PodResource, EphemeralContainersResource, CopyOrReadable
FieldValidateable.Validation
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTAINER_ANNOTATION_NAME |
static int |
DEFAULT_POD_READY_WAIT_TIMEOUT_MS |
static int |
HTTP_TOO_MANY_REQUESTS |
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
apiVersion, listType
type
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, subresource
Constructor and Description |
---|
PodOperationsImpl(Client client) |
PodOperationsImpl(PodOperationContext context,
OperationContext superContext) |
accept, edit, edit, editStatus, handleReplace, modifyItemForReplaceOrPatch, patch, patch, patch, patch, patch, patchStatus, patchStatus, replace, replaceStatus, scale, scale, scale, update, update, updateStatus, waitUntilScaled
appendListOptionParams, create, createOr, createOrReplace, createOrReplace, delete, delete, delete, deleteAll, dryRun, dryRun, edit, fetchListUrl, fieldManager, fieldValidation, forceConflicts, forOperationType, fromServer, get, getApiEndpointPath, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getItemOrRequireFromServer, getKind, getLimit, getListType, getNonNullItem, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getVersion, getWatchReconnectInterval, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, inWriteContext, isReady, isResourceNamespaced, item, list, list, list, load, load, load, load, lockResourceVersion, lockResourceVersion, newResource, replace, replaceStatus, require, requireFromServer, resource, resources, runnableInformer, serverSideApply, setListType, setType, submitList, submitWatch, unlock, 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, withTimeout
create, getType
addNamespacedUrlPathParts, assertResponseCode, checkName, checkNamespace, correctNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getKubernetesSerialization, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getOperationContext, getRequestConfig, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrlParts, handleCreate, handleDelete, handleDeploymentRollback, handleGet, handleMetric, handlePatch, handlePatch, handleRaw, handleRawGet, handleResponse, handleResponse, handleScale, handleUpdate, requestException, requestException, requestFailure, requestFailure, restCall, waitForResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cascading, isReady, item, lockResourceVersion, lockResourceVersion, require
scale, scale, scale, scale
fromServer
withResourceVersion
waitUntilCondition, waitUntilReady
createOr, unlock
create, createOrReplace
accept, edit, edit, edit, editStatus, patch, patch, patch, patch, patch, patch, patchStatus
replace, replaceStatus, update, updateStatus
create, createOrReplace, delete, patchStatus, updateStatus
withGracePeriod
withPropagationPolicy
delete, withTimeout, withTimeoutInMillis
replace, replaceStatus
fieldManager, forceConflicts, serverSideApply
fieldValidation
dryRun, dryRun
inform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimit
getFullResourceName, getName, getNamespace
delete
withLabel, withoutLabel
withTimeoutInMillis
public static final int HTTP_TOO_MANY_REQUESTS
public static final int DEFAULT_POD_READY_WAIT_TIMEOUT_MS
public static final String DEFAULT_CONTAINER_ANNOTATION_NAME
public PodOperationsImpl(Client client)
public PodOperationsImpl(PodOperationContext context, OperationContext superContext)
public PodOperationsImpl newInstance(OperationContext context)
newInstance
in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>
public PodOperationContext getContext()
protected <T> T doGetLog(Class<T> type)
public Reader getLogReader()
getLogReader
in interface Loggable
public InputStream getLogInputStream()
getLogInputStream
in interface Loggable
public LogWatch watchLog(OutputStream out)
public PodOperationsImpl withReadyWaitTimeout(Integer logWaitTimeout)
withReadyWaitTimeout
in interface ContainerResource
withReadyWaitTimeout
in interface CopyOrReadable
withReadyWaitTimeout
in interface Execable
withReadyWaitTimeout
in interface Loggable
public Loggable withLogWaitTimeout(Integer logWaitTimeout)
withLogWaitTimeout
in interface Loggable
public PortForward portForward(int port, ReadableByteChannel in, WritableByteChannel out)
portForward
in interface PortForwardable
public LocalPortForward portForward(int port)
portForward
in interface PortForwardable
public LocalPortForward portForward(int port, int localPort)
portForward
in interface PortForwardable
public LocalPortForward portForward(int port, InetAddress localInetAddress, int localPort)
portForward
in interface PortForwardable
public boolean evict()
evict
in interface PodResource
public boolean evict(io.fabric8.kubernetes.api.model.policy.v1.Eviction eviction)
evict
in interface PodResource
public EphemeralContainersResource ephemeralContainers()
ephemeralContainers
in interface PodResource
public PodOperationsImpl inContainer(String containerId)
inContainer
in interface Containerable<String,ContainerResource>
public PodOperationsImpl file(String file)
file
in interface ContainerResource
public PodOperationsImpl dir(String dir)
dir
in interface ContainerResource
public boolean copy(Path destination)
copy
in interface CopyOrReadable
public boolean upload(InputStream inputStream)
upload
in interface CopyOrReadable
public boolean upload(Path path)
upload
in interface CopyOrReadable
public InputStream read()
read
in interface CopyOrReadable
public InputStream readTar(String source)
public TtyExecOutputErrorable readingInput(InputStream in)
readingInput
in interface ContainerResource
public PodOperationsImpl redirectingInput()
redirectingInput
in interface ContainerResource
public PodOperationsImpl redirectingInput(Integer bufferSize)
redirectingInput
in interface ContainerResource
public TtyExecErrorable writingOutput(OutputStream out)
writingOutput
in interface TtyExecOutputErrorable
public TtyExecErrorable redirectingOutput()
redirectingOutput
in interface TtyExecOutputErrorable
public TtyExecErrorChannelable writingError(OutputStream err)
writingError
in interface TtyExecErrorable
public TtyExecErrorChannelable redirectingError()
redirectingError
in interface TtyExecErrorable
public TtyExecable writingErrorChannel(OutputStream errChannel)
writingErrorChannel
in interface TtyExecErrorChannelable
public TtyExecable redirectingErrorChannel()
redirectingErrorChannel
in interface TtyExecErrorChannelable
public ExecListenable withTTY()
withTTY
in interface TtyExecable
public Loggable withPrettyOutput()
withPrettyOutput
in interface PrettyLoggable
public PrettyLoggable tailingLines(int withTailingLines)
tailingLines
in interface TailPrettyLoggable
public TailPrettyLoggable sinceTime(String sinceTimestamp)
sinceTime
in interface TimeTailPrettyLoggable
public TailPrettyLoggable sinceSeconds(int sinceSeconds)
sinceSeconds
in interface TimeTailPrettyLoggable
public TimeTailPrettyLoggable terminated()
terminated
in interface BytesLimitTerminateTimeTailPrettyLoggable
public Execable usingListener(ExecListener execListener)
usingListener
in interface ExecListenable
public BytesLimitTerminateTimeTailPrettyLoggable limitBytes(int limitBytes)
limitBytes
in interface BytesLimitTerminateTimeTailPrettyLoggable
public BytesLimitTerminateTimeTailPrettyLoggable usingTimestamps()
usingTimestamps
in interface TimestampBytesLimitTerminateTimeTailPrettyLoggable
public PodOperationsImpl terminateOnError()
terminateOnError
in interface TtyExecErrorable
Copyright © 2015–2023 Red Hat. All rights reserved.