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, listType, typeapiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPERDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS| Constructor and Description |
|---|
ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config,
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,
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, requireFromServercascading, create, create, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getListType, getMandatory, getOperationType, getPropagationPolicy, getReadiness, getResourceT, getResourceVersion, getRootPaths, getType, 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, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withItem, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, requestException, requestFailure, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateOrReplacecreate, createfromServerreplacepatch, patch, patch, patchupdateStatuseditStatusreplaceStatuspatchStatuswithGracePeriodwithPropagationPolicylockResourceVersionwaitUntilCondition, withWaitRetryBackoffwithResourceVersiondryRun, dryRunrequireinform, inform, inform, informOnCondition, withIndexersgetName, getNamespacewithLabel, withoutLabelpublic static final String EXTERNAL_NAME
public ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config)
public ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace)
public ServiceOperationsImpl(OperationContext context)
public ServiceOperationsImpl newInstance(OperationContext context)
newInstance in class BaseOperation<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)
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–2020 Red Hat. All rights reserved.