Class BaseOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>>
- java.lang.Object
-
- io.fabric8.kubernetes.client.dsl.base.OperationSupport
-
- io.fabric8.kubernetes.client.dsl.base.BaseOperation<T,L,R>
-
- All Implemented Interfaces:
AnyNamespaceable<FilterWatchListMultiDeletable<T,L>>,Cascading<EditReplacePatchDeletable<T>>,CascadingEditReplacePatchDeletable<T>,Createable<T>,CreateFromServerGettable<T>,CreateOrReplaceable<T>,Deletable,DryRunable<WritableOperation<T>>,Editable<T>,EditReplacePatchable<T>,EditReplacePatchDeletable<T>,Filterable<FilterWatchListDeletable<T,L>>,FilterWatchListDeletable<T,L>,FilterWatchListMultiDeletable<T,L>,FromServerable<Gettable<T>>,Gettable<T>,Listable<L>,Loadable<R>,Lockable<Replaceable<T>>,MixedOperation<T,L,R>,MultiDeleteable<T>,Nameable<R>,Namespaceable<NonNamespaceOperation<T,L,R>>,NonNamespaceOperation<T,L,R>,Operation<T,L,R>,Patchable<T>,Readiable,Replaceable<T>,Requirable<T>,Resource<T>,StatusUpdatable<T>,Versionable<WatchAndWaitable<T>>,VersionWatchAndWaitable<T>,Waitable<T,T>,Watchable<Watcher<T>>,WatchAndWaitable<T>,WatchListDeletable<T,L>,WritableOperation<T>,FromServerGettable<T>,GracePeriodConfigurable<Deletable>,OperationInfo,PropagationPolicyConfigurable<EditReplacePatchDeletable<T>>
- Direct Known Subclasses:
HasMetadataOperation,SharedInformerFactory
public class BaseOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,R extends Resource<T>> extends OperationSupport implements OperationInfo, MixedOperation<T,L,R>, Resource<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringapiVersionprotected Class<L>listTypeprotected Class<T>type-
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
apiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
-
Fields inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseOperation(OperationContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Taccept(Consumer<T> consumer)EditReplacePatchDeletable<T>cascading(boolean cascading)deletes dependent resources.Tcreate(T resource)Tcreate(T... resources)TcreateOrReplace(T... items)Creates a provided resource in a Kubernetes Cluster.Booleandelete()Deletes resource and all managed resources, returns null or false if not found.Booleandelete(List<T> items)Booleandelete(T... items)WritableOperation<T>dryRun(boolean isDryRun)Indicates whether modifications should not be persisted or not.Tedit(io.fabric8.kubernetes.api.builder.Visitor... visitors)<V> Tedit(Class<V> visitorType, io.fabric8.kubernetes.api.builder.Visitor<V> visitor)Tedit(UnaryOperator<T> function)protected URLfetchListUrl(URL url, io.fabric8.kubernetes.api.model.ListOptions listOptions)OperationInfoforOperationType(String type)Gettable<T>fromServer()Tget()StringgetApiVersion()protected Class<? extends Config>getConfigType()StringgetFieldQueryParam()protected Map<String,String>getFields()protected Map<String,String[]>getFieldsNot()LonggetGracePeriodSeconds()TgetItem()StringgetKind()StringgetLabelQueryParam()protected Map<String,String>getLabels()protected Map<String,String[]>getLabelsIn()protected Map<String,String[]>getLabelsNot()protected Map<String,String[]>getLabelsNotIn()Class<L>getListType()TgetMandatory()StringgetOperationType()io.fabric8.kubernetes.api.model.DeletionPropagationgetPropagationPolicy()ReadinessgetReadiness()StringgetResourceT()StringgetResourceVersion()io.fabric8.kubernetes.api.model.RootPathsgetRootPaths()Class<T>getType()protected ThandleCreate(T resource)protected io.fabric8.kubernetes.api.model.StatushandleDeploymentRollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback deploymentRollback)protected ThandleGet(URL resourceUrl)protected ThandlePatch(T current, Map<String,Object> patchedUpdate)protected ThandlePatch(T current, T updated)protected ThandleReplace(T updated)protected ThandleResponse(okhttp3.Request.Builder requestBuilder)protected io.fabric8.kubernetes.api.model.autoscaling.v1.ScalehandleScale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scaleParam)NonNamespaceOperation<T,L,R>inAnyNamespace()NonNamespaceOperation<T,L,R>inNamespace(String namespace)booleanisApiGroup()Return true if this is an API Group where the versions include a slash in themBooleanisCascading()BooleanisReady()BooleanisReloadingFromServer()booleanisResourceNamespaced()Llist()Llist(io.fabric8.kubernetes.api.model.ListOptions listOptions)List resource from Kubernetes API server.Llist(Integer limitVal, String continueVal)List resources from APIServer.Rload(File file)Load from aFile.Rload(InputStream is)Load from anInputStream.Rload(String path)Load from path.Rload(URL url)Load from aURL.Replaceable<T>lockResourceVersion(String resourceVersion)BaseOperation<T,L,R>newInstance(OperationContext context)Tpatch(T item)Treplace(T item)Trequire()protected TsendPatchedObject(T oldObject, T updatedObject)voidsetListType(Class<L> listType)voidsetNamespace(String namespace)voidsetType(Class<T> type)protected voidupdateApiVersion(io.fabric8.kubernetes.api.model.HasMetadata hasMetadata)Updates the resource if it has missing or default apiGroupVersion values and the resource is currently using API Groups with custom version stringsprotected voidupdateApiVersion(io.fabric8.kubernetes.api.model.KubernetesResourceList<T> list)Updates the list items if they have missing or default apiGroupVersion values and the resource is currently using API Groups with custom version stringsTupdateStatus(T item)When the status subresource is enabled, the /status subresource for the custom resource is exposed.TwaitUntilCondition(Predicate<T> condition, long amount, TimeUnit timeUnit)TwaitUntilReady(long amount, TimeUnit timeUnit)Watchwatch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)Watch returnsWatchinterface that watches requested resourceWatchwatch(Watcher<T> watcher)Watch returnsWatchinterface that watches requested resourceWatchwatch(String resourceVersion, Watcher<T> watcher)Watch returnsWatchinterface that watches requested resource from specified resourceVersionFilterWatchListDeletable<T,L>withField(String key, String value)FilterWatchListDeletable<T,L>withFields(Map<String,String> fields)FilterWatchListDeletable<T,L>withGracePeriod(long gracePeriodSeconds)The duration in seconds before the object should be deleted.FilterWatchListDeletable<T,L>withInvolvedObject(io.fabric8.kubernetes.api.model.ObjectReference objectReference)Filter with the object that this event is about.BaseOperation<T,L,R>withItem(T item)FilterWatchListDeletable<T,L>withLabel(String key)FilterWatchListDeletable<T,L>withLabel(String key, String value)FilterWatchListDeletable<T,L>withLabelIn(String key, String... values)FilterWatchListDeletable<T,L>withLabelNotIn(String key, String... values)FilterWatchListDeletable<T,L>withLabels(Map<String,String> labels)FilterWatchListDeletable<T,L>withLabelSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)RwithName(String name)FilterWatchListDeletable<T,L>withoutField(String key, String value)FilterWatchListDeletable<T,L>withoutFields(Map<String,String> fields)Deprecated.as the underlying implementation does not align with the arguments fully.FilterWatchListDeletable<T,L>withoutLabel(String key)FilterWatchListDeletable<T,L>withoutLabel(String key, String value)FilterWatchListDeletable<T,L>withoutLabels(Map<String,String> labels)Deprecated.as the underlying implementation does not align with the arguments anymore.EditReplacePatchDeletable<T>withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)Whether and how garbage collection will be performed.RwithResourceVersion(String resourceVersion)BaseOperation<T,L,R>withWaitRetryBackoff(long initialBackoff, TimeUnit backoffUnit, double backoffMultiplier)Configure the backoff strategy to use when waiting for conditions, in case the watcher encounters a retryable error.-
Methods inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceUrl, getResourceUrl, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleStatusUpdate, requestException, requestFailure, unmarshal, unmarshal, unmarshal
-
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.DryRunable
dryRun
-
Methods inherited from interface io.fabric8.kubernetes.client.OperationInfo
getName, getNamespace
-
-
-
-
Constructor Detail
-
BaseOperation
protected BaseOperation(OperationContext ctx)
-
-
Method Detail
-
newInstance
public BaseOperation<T,L,R> newInstance(OperationContext context)
-
fetchListUrl
protected URL fetchListUrl(URL url, io.fabric8.kubernetes.api.model.ListOptions listOptions) throws MalformedURLException
- Throws:
MalformedURLException
-
get
public T get()
-
require
public T require()
- Specified by:
requirein interfaceRequirable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Returns:
- the item or throws an exception if the item doesn't exist.
-
getMandatory
public T getMandatory()
-
getRootPaths
public io.fabric8.kubernetes.api.model.RootPaths getRootPaths()
-
edit
public T edit(UnaryOperator<T> function)
-
edit
public T edit(io.fabric8.kubernetes.api.builder.Visitor... visitors)
-
lockResourceVersion
public Replaceable<T> lockResourceVersion(String resourceVersion)
- Specified by:
lockResourceVersionin interfaceLockable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
inNamespace
public NonNamespaceOperation<T,L,R> inNamespace(String namespace)
- Specified by:
inNamespacein interfaceNamespaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
inAnyNamespace
public NonNamespaceOperation<T,L,R> inAnyNamespace()
- Specified by:
inAnyNamespacein interfaceAnyNamespaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
cascading
public EditReplacePatchDeletable<T> cascading(boolean cascading)
Description copied from interface:Cascadingdeletes dependent resources. Sets `orphanDependents` field to `false` when set `true`
-
load
public R load(InputStream is)
Description copied from interface:LoadableLoad from anInputStream.
-
fromServer
public Gettable<T> fromServer()
- Specified by:
fromServerin interfaceFromServerable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
create
@SafeVarargs public final T create(T... resources)
- Specified by:
createin interfaceCreateable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
create
public T create(T resource)
- Specified by:
createin interfaceCreateable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
createOrReplace
@SafeVarargs public final T createOrReplace(T... items)
Description copied from interface:CreateOrReplaceableCreates a provided resource in a Kubernetes Cluster. If creation fails with a HTTP_CONFLICT, it tries to replace resource.- Specified by:
createOrReplacein interfaceCreateOrReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Parameters:
items- item to create or replace- Returns:
- created item returned in kubernetes api response
-
withLabels
public FilterWatchListDeletable<T,L> withLabels(Map<String,String> labels)
- Specified by:
withLabelsin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelSelector
public FilterWatchListDeletable<T,L> withLabelSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
- Specified by:
withLabelSelectorin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutLabels
@Deprecated public FilterWatchListDeletable<T,L> withoutLabels(Map<String,String> labels)
Deprecated.as the underlying implementation does not align with the arguments anymore. It is possible to negate multiple values with the same key, e.g.: foo != bar , foo != baz To support this a multi-value map is needed, as a regular map would override the key with the new value.- Specified by:
withoutLabelsin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelIn
public FilterWatchListDeletable<T,L> withLabelIn(String key, String... values)
- Specified by:
withLabelInin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabelNotIn
public FilterWatchListDeletable<T,L> withLabelNotIn(String key, String... values)
- Specified by:
withLabelNotInin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabel
public FilterWatchListDeletable<T,L> withLabel(String key, String value)
- Specified by:
withLabelin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withLabel
public FilterWatchListDeletable<T,L> withLabel(String key)
- Specified by:
withLabelin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutLabel
public FilterWatchListDeletable<T,L> withoutLabel(String key, String value)
- Specified by:
withoutLabelin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutLabel
public FilterWatchListDeletable<T,L> withoutLabel(String key)
- Specified by:
withoutLabelin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withFields
public FilterWatchListDeletable<T,L> withFields(Map<String,String> fields)
- Specified by:
withFieldsin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withField
public FilterWatchListDeletable<T,L> withField(String key, String value)
- Specified by:
withFieldin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withInvolvedObject
public FilterWatchListDeletable<T,L> withInvolvedObject(io.fabric8.kubernetes.api.model.ObjectReference objectReference)
Description copied from interface:FilterableFilter with the object that this event is about.- Specified by:
withInvolvedObjectin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Parameters:
objectReference-ObjectReferencefor providing information of referred object- Returns:
- filtered resource
-
withoutFields
@Deprecated public FilterWatchListDeletable<T,L> withoutFields(Map<String,String> fields)
Deprecated.as the underlying implementation does not align with the arguments fully. Method is created to have a similar API as `withoutLabels`, but should eventually be replaced with something better for the same reasons. It is possible to negate multiple values with the same key, e.g.: foo != bar , foo != baz To support this a multi-value map is needed, as a regular map would override the key with the new value.- Specified by:
withoutFieldsin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
withoutField
public FilterWatchListDeletable<T,L> withoutField(String key, String value)
- Specified by:
withoutFieldin interfaceFilterable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
getLabelQueryParam
public String getLabelQueryParam()
-
getFieldQueryParam
public String getFieldQueryParam()
-
list
public L list()
-
list
public L list(Integer limitVal, String continueVal)
Description copied from interface:ListableList resources from APIServer.
-
list
public L list(io.fabric8.kubernetes.api.model.ListOptions listOptions)
Description copied from interface:ListableList resource from Kubernetes API server.
-
delete
public Boolean delete()
Description copied from interface:DeletableDeletes resource and all managed resources, returns null or false if not found.
-
delete
@SafeVarargs public final Boolean delete(T... items)
- Specified by:
deletein interfaceMultiDeleteable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
delete
public Boolean delete(List<T> items)
- Specified by:
deletein interfaceMultiDeleteable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
updateStatus
public T updateStatus(T item)
Description copied from interface:StatusUpdatableWhen the status subresource is enabled, the /status subresource for the custom resource is exposed. It does a PUT requests to the /status subresource take a resource object and ignore changes to anything except the status stanza.- Specified by:
updateStatusin interfaceStatusUpdatable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Parameters:
item- kubernetes object- Returns:
- updated object
-
withItem
public BaseOperation<T,L,R> withItem(T item)
-
withResourceVersion
public R withResourceVersion(String resourceVersion)
- Specified by:
withResourceVersionin interfaceVersionable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
watch
public Watch watch(Watcher<T> watcher)
Description copied from interface:WatchableWatch returnsWatchinterface that watches requested resource
-
watch
public Watch watch(String resourceVersion, Watcher<T> watcher)
Description copied from interface:WatchableWatch returnsWatchinterface that watches requested resource from specified resourceVersion
-
watch
public Watch watch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)
Description copied from interface:WatchableWatch returnsWatchinterface that watches requested resource
-
replace
public T replace(T item)
- Specified by:
replacein interfaceReplaceable<T extends io.fabric8.kubernetes.api.model.HasMetadata>
-
isResourceNamespaced
public boolean isResourceNamespaced()
- Overrides:
isResourceNamespacedin classOperationSupport
-
handleResponse
protected T handleResponse(okhttp3.Request.Builder requestBuilder) throws ExecutionException, InterruptedException, IOException
-
handleCreate
protected T handleCreate(T resource) throws ExecutionException, InterruptedException, IOException
-
handleReplace
protected T handleReplace(T updated) throws ExecutionException, InterruptedException, IOException
-
handlePatch
protected T handlePatch(T current, T updated) throws ExecutionException, InterruptedException, IOException
-
handlePatch
protected T handlePatch(T current, Map<String,Object> patchedUpdate) throws ExecutionException, InterruptedException, IOException
-
handleScale
protected io.fabric8.kubernetes.api.model.autoscaling.v1.Scale handleScale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scaleParam)
-
handleDeploymentRollback
protected io.fabric8.kubernetes.api.model.Status handleDeploymentRollback(io.fabric8.kubernetes.api.model.extensions.DeploymentRollback deploymentRollback)
-
handleGet
protected T handleGet(URL resourceUrl) throws InterruptedException, ExecutionException, IOException
-
isCascading
public Boolean isCascading()
-
getItem
public T getItem()
-
getResourceVersion
public String getResourceVersion()
-
isReloadingFromServer
public Boolean isReloadingFromServer()
-
getGracePeriodSeconds
public Long getGracePeriodSeconds()
-
getPropagationPolicy
public io.fabric8.kubernetes.api.model.DeletionPropagation getPropagationPolicy()
-
getResourceT
public String getResourceT()
- Overrides:
getResourceTin classOperationSupport
-
getKind
public String getKind()
- Specified by:
getKindin interfaceOperationInfo
-
getOperationType
public String getOperationType()
- Specified by:
getOperationTypein interfaceOperationInfo
-
forOperationType
public OperationInfo forOperationType(String type)
- Specified by:
forOperationTypein interfaceOperationInfo
-
withGracePeriod
public FilterWatchListDeletable<T,L> withGracePeriod(long gracePeriodSeconds)
Description copied from interface:GracePeriodConfigurableThe duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.- Specified by:
withGracePeriodin interfaceGracePeriodConfigurable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Parameters:
gracePeriodSeconds- grace period integer value in seconds- Returns:
- the object for which grace period is configured
-
withPropagationPolicy
public EditReplacePatchDeletable<T> withPropagationPolicy(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
Description copied from interface:PropagationPolicyConfigurableWhether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both.The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.
Acceptable values are:
'Orphan' - orphan the dependents;
'Background' - allow the garbage collector to delete the dependents in the background;
'Foreground' - a cascading policy that deletes all dependents in the foreground.- Specified by:
withPropagationPolicyin interfacePropagationPolicyConfigurable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Parameters:
propagationPolicy- propagation policy in form of stringDeletionPropagation- Returns:
- resource
-
withWaitRetryBackoff
public BaseOperation<T,L,R> withWaitRetryBackoff(long initialBackoff, TimeUnit backoffUnit, double backoffMultiplier)
Description copied from interface:WaitableConfigure the backoff strategy to use when waiting for conditions, in case the watcher encounters a retryable error.- Specified by:
withWaitRetryBackoffin interfaceWaitable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>- Parameters:
initialBackoff- the value for the initial backoff on first errorbackoffUnit- the TimeUnit for the initial backoff valuebackoffMultiplier- what to multiply the backoff by on each subsequent error- Returns:
- the waitable
-
updateApiVersion
protected void updateApiVersion(io.fabric8.kubernetes.api.model.KubernetesResourceList<T> list)
Updates the list items if they have missing or default apiGroupVersion values and the resource is currently using API Groups with custom version strings- Parameters:
list- Kubernetes resource list
-
updateApiVersion
protected void updateApiVersion(io.fabric8.kubernetes.api.model.HasMetadata hasMetadata)
Updates the resource if it has missing or default apiGroupVersion values and the resource is currently using API Groups with custom version strings- Parameters:
hasMetadata- object whose api version needs to be updated
-
getApiVersion
public String getApiVersion()
-
isApiGroup
public boolean isApiGroup()
Return true if this is an API Group where the versions include a slash in them- Returns:
- boolean value indicating whether API group or not
-
getReadiness
public Readiness getReadiness()
-
waitUntilReady
public T waitUntilReady(long amount, TimeUnit timeUnit) throws InterruptedException
- Specified by:
waitUntilReadyin interfaceWaitable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>- Throws:
InterruptedException
-
waitUntilCondition
public T waitUntilCondition(Predicate<T> condition, long amount, TimeUnit timeUnit) throws InterruptedException
- Specified by:
waitUntilConditionin interfaceWaitable<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>- Throws:
InterruptedException
-
setNamespace
public void setNamespace(String namespace)
-
dryRun
public WritableOperation<T> dryRun(boolean isDryRun)
Description copied from interface:DryRunableIndicates whether modifications should not be persisted or not. If enabled, All dry run stages will be processed. the request is still processed as typical request: the fields are defaulted, the object is validated, it goes through the validation admission chain, and through the mutating admission chain, and then the final object is returned to the user as it normally would, without being persisted.- Specified by:
dryRunin interfaceDryRunable<T extends io.fabric8.kubernetes.api.model.HasMetadata>- Parameters:
isDryRun- whether dry run is enabled or disabled- Returns:
- write operations which are applicable for dry run
-
-