public class HasMetadataOperation<T extends HasMetadata,L extends KubernetesResourceList,D extends Doneable<T>,R extends Resource<T,D>> extends BaseOperation<T,L,D,R>
apiVersion, doneableType, listType, reaper, type
apiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, YAML_MAPPER
Constructor and Description |
---|
HasMetadataOperation(OperationContext ctx) |
Modifier and Type | Method and Description |
---|---|
D |
edit() |
T |
patch(T item) |
protected T |
periodicWatchUntilReady(int i,
long started,
long interval,
long amount)
A wait method that combines watching and polling.
|
T |
replace(T item) |
T |
waitUntilReady(long amount,
java.util.concurrent.TimeUnit timeUnit) |
cascading, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, forOperationType, fromServer, get, getApiVersion, getConfigType, getDoneableType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getReloadingFromServer, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleGet, handlePatch, handleReplace, handleResponse, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReaping, isReloadingFromServer, isResourceNamespaced, list, list, load, load, load, load, lockResourceVersion, newInstance, require, setReaping, updateApiVersion, updateApiVersion, updateApiVersionResource, waitUntilCondition, waitUntilExists, watch, watch, withField, withFields, withGracePeriod, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withResourceVersion
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getResourceUrl, getResourceUrl, getRootUrl, handleCreate, handleDelete, handleDelete, handleGet, handleGet, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleResponse, requestException, requestFailure, unmarshal, unmarshal, unmarshal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNamespace
public HasMetadataOperation(OperationContext ctx)
public D edit() throws KubernetesClientException
edit
in interface Editable<D extends Doneable<T>>
edit
in class BaseOperation<T extends HasMetadata,L extends KubernetesResourceList,D extends Doneable<T>,R extends Resource<T,D>>
KubernetesClientException
public T replace(T item)
replace
in interface Replaceable<T extends HasMetadata,T extends HasMetadata>
replace
in class BaseOperation<T extends HasMetadata,L extends KubernetesResourceList,D extends Doneable<T>,R extends Resource<T,D>>
public T patch(T item)
patch
in interface Patchable<T extends HasMetadata,T extends HasMetadata>
patch
in class BaseOperation<T extends HasMetadata,L extends KubernetesResourceList,D extends Doneable<T>,R extends Resource<T,D>>
protected T periodicWatchUntilReady(int i, long started, long interval, long amount)
i
- The number of iterations to perform.started
- Time in milliseconds where the watch started.interval
- The amount of time in millis to wait on each iteration.amount
- The maximum amount in millis of time since started to wait.ReplicationController
if ready.public T waitUntilReady(long amount, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException
waitUntilReady
in interface Waitable<T extends HasMetadata,T extends HasMetadata>
waitUntilReady
in class BaseOperation<T extends HasMetadata,L extends KubernetesResourceList,D extends Doneable<T>,R extends Resource<T,D>>
java.lang.InterruptedException
Copyright © 2015-2019 Red Hat. All Rights Reserved.