public class PodOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource<io.fabric8.kubernetes.api.model.Pod>> implements PodResource<io.fabric8.kubernetes.api.model.Pod>, CopyOrReadable<Boolean,InputStream,Boolean>
Modifier and Type | Field and Description |
---|---|
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_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH
DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS
Constructor and Description |
---|
PodOperationsImpl(ClientContext clientContext) |
PodOperationsImpl(ClientContext clientContext,
String namespace) |
PodOperationsImpl(PodOperationContext context,
OperationContext superContext) |
accept, createVisitableBuilder, edit, edit, editStatus, modifyItemForReplaceOrPatch, patch, patch, patch, patchStatus, replace, replace, replaceStatus, requireFromServer, requireFromServer, validateOperation
appendListOptionParams, 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, withWaitRetryBackoff
create, create, getType
assertResponseCode, 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, unmarshal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromServer
lockResourceVersion
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
withResourceVersion
createOrReplace
patch, patch, patch, patch
updateStatus
editStatus
replaceStatus
patchStatus
replace
withGracePeriod
withPropagationPolicy
dryRun, dryRun
require
inform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimit
create, create
getFullResourceName, getName, getNamespace
withLabel, withoutLabel
getNamespace
public static final int HTTP_TOO_MANY_REQUESTS
public PodOperationsImpl(ClientContext clientContext)
public PodOperationsImpl(ClientContext clientContext, String namespace)
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<io.fabric8.kubernetes.api.model.Pod>>
public PodOperationContext getContext()
protected String getLogParameters()
protected <T> T doGetLog(Class<T> type)
public Reader getLogReader()
getLogReader
in interface Loggable<LogWatch>
public String getLog(Boolean isPretty)
Loggable
public LogWatch watchLog()
Loggable
public LogWatch watchLog(OutputStream out)
Loggable
watchLog
in interface Loggable<LogWatch>
out
- OutputStream
for storing logspublic Loggable<LogWatch> withLogWaitTimeout(Integer logWaitTimeout)
Loggable
withLogWaitTimeout
in interface Loggable<LogWatch>
logWaitTimeout
- timeout in millisecondsLoggable
for fetching logspublic PortForward portForward(int port, ReadableByteChannel in, WritableByteChannel out)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>
port
- port as integerin
- input channelout
- output channelpublic LocalPortForward portForward(int port)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>
port
- port as integerpublic LocalPortForward portForward(int port, int localPort)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>
port
- port in integerlocalPort
- local port in integerpublic LocalPortForward portForward(int port, InetAddress localInetAddress, int localPort)
PortForwardable
localPort
on selected IP inetAddress
, forwarding to port
in the podportForward
in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>
port
- port in integerlocalInetAddress
- InetAddress
selected IP AddresslocalPort
- local port in integerpublic Boolean evict()
Evictable
PodDisruptionBudget
public Boolean evict(io.fabric8.kubernetes.api.model.policy.v1.Eviction eviction)
Evictable
public ContainerResource<LogWatch,InputStream,PipedOutputStream,OutputStream,PipedInputStream,String,ExecWatch,Boolean,InputStream,Boolean> inContainer(String containerId)
Containerable
inContainer
in interface Containerable<String,ContainerResource<LogWatch,InputStream,PipedOutputStream,OutputStream,PipedInputStream,String,ExecWatch,Boolean,InputStream,Boolean>>
containerId
- container for which we want logspublic CopyOrReadable<Boolean,InputStream,Boolean> file(String file)
file
in interface FileSelector<CopyOrReadable<Boolean,InputStream,Boolean>>
public CopyOrReadable<Boolean,InputStream,Boolean> dir(String dir)
dir
in interface FileSelector<CopyOrReadable<Boolean,InputStream,Boolean>>
public Boolean upload(InputStream inputStream)
Uploadable
upload
in interface Uploadable<Boolean>
inputStream
- InputStream
which will be uploadedpublic Boolean upload(Path path)
Uploadable
Path
to Podupload
in interface Uploadable<Boolean>
path
- path of the file which needs to be uploadedpublic InputStream read()
read
in interface Readable<InputStream>
public InputStream readTar(String source)
public TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch> readingInput(InputStream in)
readingInput
in interface Inputable<InputStream,PipedOutputStream,TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch> writingInput(PipedOutputStream inPipe)
writingInput
in interface Inputable<InputStream,PipedOutputStream,TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch> redirectingInput()
redirectingInput
in interface Inputable<InputStream,PipedOutputStream,TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch> redirectingInput(Integer bufferSize)
redirectingInput
in interface Inputable<InputStream,PipedOutputStream,TtyExecOutputErrorable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecErrorable<String,OutputStream,PipedInputStream,ExecWatch> writingOutput(OutputStream out)
writingOutput
in interface Outputable<OutputStream,PipedInputStream,TtyExecErrorable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecErrorable<String,OutputStream,PipedInputStream,ExecWatch> readingOutput(PipedInputStream outPipe)
readingOutput
in interface Outputable<OutputStream,PipedInputStream,TtyExecErrorable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecErrorable<String,OutputStream,PipedInputStream,ExecWatch> redirectingOutput()
redirectingOutput
in interface Outputable<OutputStream,PipedInputStream,TtyExecErrorable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecErrorChannelable<String,OutputStream,PipedInputStream,ExecWatch> writingError(OutputStream err)
writingError
in interface Errorable<OutputStream,PipedInputStream,TtyExecErrorChannelable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecErrorChannelable<String,OutputStream,PipedInputStream,ExecWatch> readingError(PipedInputStream errPipe)
readingError
in interface Errorable<OutputStream,PipedInputStream,TtyExecErrorChannelable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecErrorChannelable<String,OutputStream,PipedInputStream,ExecWatch> redirectingError()
redirectingError
in interface Errorable<OutputStream,PipedInputStream,TtyExecErrorChannelable<String,OutputStream,PipedInputStream,ExecWatch>>
public TtyExecable<String,ExecWatch> writingErrorChannel(OutputStream errChannel)
writingErrorChannel
in interface ErrorChannelable<OutputStream,PipedInputStream,TtyExecable<String,ExecWatch>>
public TtyExecable<String,ExecWatch> readingErrorChannel(PipedInputStream errChannelPipe)
readingErrorChannel
in interface ErrorChannelable<OutputStream,PipedInputStream,TtyExecable<String,ExecWatch>>
public TtyExecable<String,ExecWatch> redirectingErrorChannel()
redirectingErrorChannel
in interface ErrorChannelable<OutputStream,PipedInputStream,TtyExecable<String,ExecWatch>>
public ExecListenable<String,ExecWatch> withTTY()
withTTY
in interface Ttyable<ExecListenable<String,ExecWatch>>
public Loggable<LogWatch> withPrettyOutput()
Prettyable
withPrettyOutput
in interface Prettyable<Loggable<LogWatch>>
public PrettyLoggable<LogWatch> tailingLines(int withTailingLines)
Tailable
tailingLines
in interface Tailable<PrettyLoggable<LogWatch>>
withTailingLines
- number of lines to tailpublic TailPrettyLoggable<LogWatch> sinceTime(String sinceTimestamp)
Timeable
sinceTime
in interface Timeable<TailPrettyLoggable<LogWatch>>
sinceTimestamp
- timestamp as stringpublic TailPrettyLoggable<LogWatch> sinceSeconds(int sinceSeconds)
Timeable
sinceSeconds
in interface Timeable<TailPrettyLoggable<LogWatch>>
sinceSeconds
- number of secondspublic TimeTailPrettyLoggable<LogWatch> terminated()
Terminateable
terminated
in interface Terminateable<TimeTailPrettyLoggable<LogWatch>>
public Execable<String,ExecWatch> usingListener(ExecListener execListener)
usingListener
in interface Listenable<Execable<String,ExecWatch>,ExecListener>
public BytesLimitTerminateTimeTailPrettyLoggable<LogWatch> limitBytes(int limitBytes)
BytesLimitable
limitBytes
in interface BytesLimitable<TimeTailPrettyLoggable<LogWatch>>
limitBytes
- number of bytespublic BytesLimitTerminateTimeTailPrettyLoggable<LogWatch> usingTimestamps()
Timestampable
usingTimestamps
in interface Timestampable<BytesLimitTerminateTimeTailPrettyLoggable<LogWatch>>
Copyright © 2015–2022 Red Hat. All rights reserved.