public class ServiceOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>> implements ServiceResource<io.fabric8.kubernetes.api.model.Service>
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceOperationsImpl.ServiceToUrlSortComparator |
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTERNAL_NAME |
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICYapiVersion, listTypetypeapiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCHDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS| Constructor and Description |
|---|
ServiceOperationsImpl(ClientContext clientContext) |
ServiceOperationsImpl(ClientContext clientContext,
String namespace) |
ServiceOperationsImpl(OperationContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
getURL(String portName) |
protected io.fabric8.kubernetes.api.model.Service |
modifyItemForReplaceOrPatch(Supplier<io.fabric8.kubernetes.api.model.Service> currentSupplier,
io.fabric8.kubernetes.api.model.Service item)
Modify the item prior to a replace or a JSON patch diff
|
ServiceOperationsImpl |
newInstance(OperationContext context) |
LocalPortForward |
portForward(int port)
Create a server socket on a random local port.
|
LocalPortForward |
portForward(int port,
InetAddress localInetAddress,
int localPort)
Listen on port
localPort on selected IP inetAddress, forwarding to port
in the pod |
LocalPortForward |
portForward(int port,
int localPort)
Create a server socket on a specified local port.
|
PortForward |
portForward(int port,
ReadableByteChannel in,
WritableByteChannel out)
Connects directly the remote port to the given input and output channels.
|
io.fabric8.kubernetes.api.model.Service |
waitUntilReady(long amount,
TimeUnit timeUnit) |
accept, createVisitableBuilder, edit, edit, editStatus, patch, patch, patch, patchStatus, replace, replace, replaceStatus, requireFromServer, requireFromServer, validateOperationappendListOptionParams, 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, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withItem, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withLabelSelector, withLimit, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffcreate, create, getTypeassertResponseCode, 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, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromServerlockResourceVersionwaitUntilCondition, withWaitRetryBackoffwithResourceVersioncreateOrReplacepatch, patch, patch, patchupdateStatuseditStatusreplaceStatuspatchStatusreplacewithGracePeriodwithPropagationPolicydryRun, dryRunrequireinform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimitcreate, creategetFullResourceName, getName, getNamespacewithLabel, withoutLabelgetNamespacepublic static final String EXTERNAL_NAME
public ServiceOperationsImpl(ClientContext clientContext)
public ServiceOperationsImpl(ClientContext clientContext, String namespace)
public ServiceOperationsImpl(OperationContext context)
public ServiceOperationsImpl newInstance(OperationContext context)
newInstance in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>public io.fabric8.kubernetes.api.model.Service waitUntilReady(long amount,
TimeUnit timeUnit)
waitUntilReady in interface Waitable<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.Service>waitUntilReady in class BaseOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>public String getURL(String portName)
getURL in interface ServiceResource<io.fabric8.kubernetes.api.model.Service>public PortForward portForward(int port, ReadableByteChannel in, WritableByteChannel out)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>port - port as integerin - input channelout - output channelpublic LocalPortForward portForward(int port, int localPort)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>port - port in integerlocalPort - local port in integerpublic LocalPortForward portForward(int port, InetAddress localInetAddress, int localPort)
PortForwardablelocalPort 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 LocalPortForward portForward(int port)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>port - port as integerprotected io.fabric8.kubernetes.api.model.Service modifyItemForReplaceOrPatch(Supplier<io.fabric8.kubernetes.api.model.Service> currentSupplier, io.fabric8.kubernetes.api.model.Service item)
HasMetadataOperationmodifyItemForReplaceOrPatch in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>currentSupplier - item from the serveritem - to be modifiedCopyright © 2015–2022 Red Hat. All rights reserved.