Class PodOperationsImpl
- java.lang.Object
-
- io.fabric8.kubernetes.client.dsl.internal.OperationSupport
-
- io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation<T,T>
-
- io.fabric8.kubernetes.client.dsl.internal.BaseOperation<T,L,R>
-
- io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>
-
- io.fabric8.kubernetes.client.dsl.internal.core.v1.PodOperationsImpl
-
- All Implemented Interfaces:
AnyNamespaceable<AnyNamespaceOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>>,AnyNamespaceOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>,BytesLimitTerminateTimeTailPrettyLoggable,Containerable<String,ContainerResource>,ContainerResource,CopyOrReadable,CreateOrReplaceable<io.fabric8.kubernetes.api.model.Pod>,Deletable,DeletableWithOptions,DryRunable<WritableOperation<io.fabric8.kubernetes.api.model.Pod>>,EditReplacePatchable<io.fabric8.kubernetes.api.model.Pod>,EphemeralContainersResource,Execable,ExecListenable,FieldValidateable<NonDeletingOperation<io.fabric8.kubernetes.api.model.Pod>>,Filterable<FilterWatchListDeletable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>>,FilterWatchListDeletable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>,Gettable<io.fabric8.kubernetes.api.model.Pod>,Informable<io.fabric8.kubernetes.api.model.Pod>,InOutCreateable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.Pod>,ItemReplacable<io.fabric8.kubernetes.api.model.Pod>,ItemWritableOperation<io.fabric8.kubernetes.api.model.Pod>,Listable<io.fabric8.kubernetes.api.model.PodList>,Loggable,MixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>,Nameable<PodResource>,Namespaceable<NonNamespaceOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>>,NonDeletingOperation<io.fabric8.kubernetes.api.model.Pod>,NonNamespaceOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>,PodResource,PortForwardable,PrettyLoggable,Replaceable<io.fabric8.kubernetes.api.model.Pod>,ReplaceDeletable<io.fabric8.kubernetes.api.model.Pod>,Resource<io.fabric8.kubernetes.api.model.Pod>,Scalable<io.fabric8.kubernetes.api.model.Pod>,ServerSideApplicable<io.fabric8.kubernetes.api.model.Pod>,TailPrettyLoggable,Timeoutable,TimeoutableScalable<io.fabric8.kubernetes.api.model.Pod>,TimestampBytesLimitTerminateTimeTailPrettyLoggable,TimeTailPrettyLoggable,TtyExecable,TtyExecErrorable,TtyExecErrorChannelable,TtyExecOutputErrorable,Updatable<io.fabric8.kubernetes.api.model.Pod>,Waitable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.Pod>,Watchable<io.fabric8.kubernetes.api.model.Pod>,WatchAndWaitable<io.fabric8.kubernetes.api.model.Pod>,WritableOperation<io.fabric8.kubernetes.api.model.Pod>,ExtensibleResource<io.fabric8.kubernetes.api.model.Pod>,FromServerGettable<io.fabric8.kubernetes.api.model.Pod>,GracePeriodConfigurable<PropagationPolicyConfigurable<? extends Deletable>>,ListerWatcher<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList>,OperationInfo,PropagationPolicyConfigurable<GracePeriodConfigurable<? extends Deletable>>
public class PodOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource> implements PodResource, EphemeralContainersResource, CopyOrReadable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.dsl.FieldValidateable
FieldValidateable.Validation
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONTAINER_ANNOTATION_NAMEstatic intDEFAULT_POD_READY_WAIT_TIMEOUT_MSstatic intHTTP_TOO_MANY_REQUESTS-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.BaseOperation
apiVersion, listType
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation
type
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, subresource
-
-
Constructor Summary
Constructors Constructor Description PodOperationsImpl(Client client)PodOperationsImpl(PodOperationContext context, OperationContext superContext)
-
Method Summary
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation
accept, edit, edit, editStatus, handleReplace, modifyItemForReplaceOrPatch, patch, patch, patch, patch, patch, patchStatus, patchStatus, replace, replaceStatus, scale, scale, scale, update, update, updateStatus, waitUntilScaled
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.BaseOperation
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, subresource, unlock, updateApiVersion, updateListItems, 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
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation
create, getType
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.AnyNamespaceOperation
delete
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.CreateOrReplaceable
create, createOrReplace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.DryRunable
dryRun
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.EditReplacePatchable
accept, edit, edit, edit, patch, patch, patch, patch, patch, patch
-
Methods inherited from interface io.fabric8.kubernetes.client.extension.ExtensibleResource
withTimeoutInMillis
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Filterable
withLabel, withoutLabel
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Informable
inform, inform, inform, informOnCondition, runnableInformer
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ItemReplacable
replace, replaceStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ItemWritableOperation
create, createOrReplace, delete, patchStatus, updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.NonDeletingOperation
createOr, editStatus, patchStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.OperationInfo
getFullResourceName, getName, getNamespace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Replaceable
replaceStatus, updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Resource
cascading, isReady, item, require
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ServerSideApplicable
serverSideApply
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
waitUntilCondition, waitUntilReady
-
-
-
-
Field Detail
-
HTTP_TOO_MANY_REQUESTS
public static final int HTTP_TOO_MANY_REQUESTS
- See Also:
- Constant Field Values
-
DEFAULT_POD_READY_WAIT_TIMEOUT_MS
public static final int DEFAULT_POD_READY_WAIT_TIMEOUT_MS
- See Also:
- Constant Field Values
-
DEFAULT_CONTAINER_ANNOTATION_NAME
public static final String DEFAULT_CONTAINER_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PodOperationsImpl
public PodOperationsImpl(Client client)
-
PodOperationsImpl
public PodOperationsImpl(PodOperationContext context, OperationContext superContext)
-
-
Method Detail
-
newInstance
public PodOperationsImpl newInstance(OperationContext context)
- Overrides:
newInstancein classHasMetadataOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource>
-
getContext
public PodOperationContext getContext()
-
doGetLog
protected <T> T doGetLog(Class<T> type)
-
getLogReader
public Reader getLogReader()
Returns an unclosed Reader. It's the caller responsibility to close it.- Specified by:
getLogReaderin interfaceLoggable- Returns:
- Reader
-
getLogInputStream
public InputStream getLogInputStream()
Returns an unclosed InputStream. It's the caller responsibility to close it.- Specified by:
getLogInputStreamin interfaceLoggable- Returns:
- InputStream
-
watchLog
public LogWatch watchLog(OutputStream out)
-
withReadyWaitTimeout
public PodOperationsImpl withReadyWaitTimeout(Integer readyWaitTimeout)
- Specified by:
withReadyWaitTimeoutin interfaceContainerResource- Specified by:
withReadyWaitTimeoutin interfaceCopyOrReadable- Specified by:
withReadyWaitTimeoutin interfaceExecable- Specified by:
withReadyWaitTimeoutin interfaceLoggable
-
withLogWaitTimeout
public Loggable withLogWaitTimeout(Integer logWaitTimeout)
- Specified by:
withLogWaitTimeoutin interfaceLoggable
-
portForward
public PortForward portForward(int port, ReadableByteChannel in, WritableByteChannel out)
- Specified by:
portForwardin interfacePortForwardable
-
portForward
public LocalPortForward portForward(int port)
- Specified by:
portForwardin interfacePortForwardable
-
portForward
public LocalPortForward portForward(int port, int localPort)
- Specified by:
portForwardin interfacePortForwardable
-
portForward
public LocalPortForward portForward(int port, InetAddress localInetAddress, int localPort)
- Specified by:
portForwardin interfacePortForwardable
-
evict
public boolean evict()
- Specified by:
evictin interfacePodResource
-
evict
public boolean evict(io.fabric8.kubernetes.api.model.policy.v1.Eviction eviction)
- Specified by:
evictin interfacePodResource
-
ephemeralContainers
public EphemeralContainersResource ephemeralContainers()
- Specified by:
ephemeralContainersin interfacePodResource
-
inContainer
public PodOperationsImpl inContainer(String containerId)
- Specified by:
inContainerin interfaceContainerable<String,ContainerResource>
-
file
public PodOperationsImpl file(String file)
- Specified by:
filein interfaceContainerResource
-
dir
public PodOperationsImpl dir(String dir)
- Specified by:
dirin interfaceContainerResource
-
copy
public boolean copy(Path destination)
- Specified by:
copyin interfaceCopyOrReadable
-
upload
public boolean upload(InputStream inputStream)
- Specified by:
uploadin interfaceCopyOrReadable
-
upload
public boolean upload(Path path)
- Specified by:
uploadin interfaceCopyOrReadable
-
read
public InputStream read()
- Specified by:
readin interfaceCopyOrReadable
-
readTar
public InputStream readTar(String source)
-
readingInput
public TtyExecOutputErrorable readingInput(InputStream in)
- Specified by:
readingInputin interfaceContainerResource
-
redirectingInput
public PodOperationsImpl redirectingInput()
- Specified by:
redirectingInputin interfaceContainerResource
-
redirectingInput
public PodOperationsImpl redirectingInput(Integer bufferSize)
- Specified by:
redirectingInputin interfaceContainerResource
-
writingOutput
public TtyExecErrorable writingOutput(OutputStream out)
- Specified by:
writingOutputin interfaceTtyExecOutputErrorable
-
redirectingOutput
public TtyExecErrorable redirectingOutput()
- Specified by:
redirectingOutputin interfaceTtyExecOutputErrorable
-
writingError
public TtyExecErrorChannelable writingError(OutputStream err)
- Specified by:
writingErrorin interfaceTtyExecErrorable
-
redirectingError
public TtyExecErrorChannelable redirectingError()
- Specified by:
redirectingErrorin interfaceTtyExecErrorable
-
writingErrorChannel
public TtyExecable writingErrorChannel(OutputStream errChannel)
- Specified by:
writingErrorChannelin interfaceTtyExecErrorChannelable
-
redirectingErrorChannel
public TtyExecable redirectingErrorChannel()
- Specified by:
redirectingErrorChannelin interfaceTtyExecErrorChannelable
-
withTTY
public ExecListenable withTTY()
- Specified by:
withTTYin interfaceTtyExecable
-
withPrettyOutput
public Loggable withPrettyOutput()
- Specified by:
withPrettyOutputin interfacePrettyLoggable
-
tailingLines
public PrettyLoggable tailingLines(int withTailingLines)
- Specified by:
tailingLinesin interfaceTailPrettyLoggable
-
sinceTime
public TailPrettyLoggable sinceTime(String sinceTimestamp)
- Specified by:
sinceTimein interfaceTimeTailPrettyLoggable
-
sinceSeconds
public TailPrettyLoggable sinceSeconds(int sinceSeconds)
- Specified by:
sinceSecondsin interfaceTimeTailPrettyLoggable
-
terminated
public TimeTailPrettyLoggable terminated()
- Specified by:
terminatedin interfaceBytesLimitTerminateTimeTailPrettyLoggable
-
usingListener
public Execable usingListener(ExecListener execListener)
- Specified by:
usingListenerin interfaceExecListenable
-
limitBytes
public BytesLimitTerminateTimeTailPrettyLoggable limitBytes(int limitBytes)
- Specified by:
limitBytesin interfaceBytesLimitTerminateTimeTailPrettyLoggable
-
usingTimestamps
public BytesLimitTerminateTimeTailPrettyLoggable usingTimestamps()
- Specified by:
usingTimestampsin interfaceTimestampBytesLimitTerminateTimeTailPrettyLoggable
-
terminateOnError
public PodOperationsImpl terminateOnError()
- Specified by:
terminateOnErrorin interfaceTtyExecErrorable
-
patchReadinessGateStatus
public io.fabric8.kubernetes.api.model.Pod patchReadinessGateStatus(Map<String,Boolean> readiness)
- Specified by:
patchReadinessGateStatusin interfacePodResource
-
-