class RawCustomResourceOperationsImpl extends OperationSupport
This class simple does basic operations for custom defined resources without demanding the POJOs for custom resources. It is serializing/deserializing objects to plain hash map(String, Object).
Right now it supports basic operations like GET, POST, PUT, DELETE.
- Alphabetic
- By Inheritance
- RawCustomResourceOperationsImpl
- OperationSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertResponseCode(arg0: Request, arg1: Response): Unit
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- def checkName[T <: AnyRef](arg0: T): String
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- def checkNamespace[T <: AnyRef](arg0: T): String
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def create(namespace: String, object: Map[String, AnyRef]): Map[String, AnyRef]
Create a custom resource which is a namespaced object.
Create a custom resource which is a namespaced object.
- namespace
namespace in which we want object to be created.
- object
object as a HashMap
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of problems faced while serializing HashMap
- def create(namespace: String, objectAsStream: InputStream): Map[String, AnyRef]
Create a custom resource which is a namespaced object.
Create a custom resource which is a namespaced object.
- namespace
namespace in which we want object to be created
- objectAsStream
object as file input stream
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of problems while reading file
- def create(objectAsStream: InputStream): Map[String, AnyRef]
Create a custom resource which is non-namespaced object.
Create a custom resource which is non-namespaced object.
- objectAsStream
object as a file input stream
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of problems while reading file
- def create(namespace: String, objectAsString: String): Map[String, AnyRef]
Create a custom resource which is a namespaced object.
Create a custom resource which is a namespaced object.
- namespace
namespace in which we want object to be created.
- objectAsString
Object as JSON string
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of problems while reading JSON object
- def create(object: Map[String, AnyRef]): Map[String, AnyRef]
Create a custom resource which is non-namespaced.
Create a custom resource which is non-namespaced.
- object
object a HashMap
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of problems while reading HashMap
- def create(objectAsString: String): Map[String, AnyRef]
Create a custom resource which is a non-namespaced object.
Create a custom resource which is a non-namespaced object.
- objectAsString
object as JSON string
- returns
Object as HashMap
- Exceptions thrown
IOExceptionexception in case of any network/read problems
- def createOrReplace(namespace: String, objectAsStream: InputStream): Map[String, AnyRef]
Create or replace a custom resource which is namespaced object.
Create or replace a custom resource which is namespaced object.
- namespace
desired namespace
- objectAsStream
object as file input stream
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def createOrReplace(namespace: String, customResourceObject: Map[String, AnyRef]): Map[String, AnyRef]
Create or replace a custom resource which is namespaced object.
Create or replace a custom resource which is namespaced object.
- namespace
desired namespace
- customResourceObject
object as HashMap
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def createOrReplace(namespace: String, objectAsString: String): Map[String, AnyRef]
Create or replace a custom resource which is namespaced object.
Create or replace a custom resource which is namespaced object.
- namespace
desired namespace
- objectAsString
object as JSON String
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def createOrReplace(inputStream: InputStream): Map[String, AnyRef]
Create or replace a custom resource which is non-namespaced object.
Create or replace a custom resource which is non-namespaced object.
- inputStream
object as file input stream
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def createOrReplace(customResourceObject: Map[String, AnyRef]): Map[String, AnyRef]
Create or replace a custom resource which is a non-namespced object.
Create or replace a custom resource which is a non-namespced object.
- customResourceObject
object as HashMap
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def createOrReplace(objectAsString: String): Map[String, AnyRef]
Create or replace a custom resource which is a non-namespaced object.
Create or replace a custom resource which is a non-namespaced object.
- objectAsString
object as JSON string
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serializiation failures or failures from Kuberntes API
- def delete(namespace: String, name: String, deleteOptions: DeleteOptions): Map[String, AnyRef]
Delete a custom resource in a specific namespace
Delete a custom resource in a specific namespace
- namespace
required namespace
- name
name of custom resource
- deleteOptions
object provided by Kubernetes API for more fine grained control over deletion. For more information please see https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#deleteoptions-v1-meta
- returns
deleted object as HashMap
- Exceptions thrown
IOExceptionin case of any network/object parse exception
- def delete(namespace: String, name: String, propagationPolicy: String): Map[String, AnyRef]
Delete a custom resource in a specific namespace
Delete a custom resource in a specific namespace
- namespace
required namespace
- name
required name of custom resource
- propagationPolicy
Whether 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.
- returns
deleted object as HashMap
- Exceptions thrown
IOExceptionin case of network/object parse exception
- def delete(namespace: String, name: String, cascading: Boolean): Map[String, AnyRef]
Delete a custom resource in a specific namespace
Delete a custom resource in a specific namespace
- namespace
required namespace
- name
required name of custom resource
- cascading
whether dependent object need to be orphaned or not. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list.
- returns
deleted objects as HashMap
- Exceptions thrown
IOExceptionexception related to network/object parsing
- def delete(namespace: String, name: String): Map[String, AnyRef]
Delete a custom resource in a specific namespace
Delete a custom resource in a specific namespace
- namespace
desired namespace
- name
custom resource's name
- returns
object as HashMap
- Exceptions thrown
IOExceptionin case of any network/object parse problems
- def delete(namespace: String, deleteOptions: DeleteOptions): Map[String, AnyRef]
Delete all custom resources in a specific namespace
Delete all custom resources in a specific namespace
- namespace
desired namespace
- deleteOptions
object provided by Kubernetes API for more fine grained control over deletion. For more information please see https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#deleteoptions-v1-meta
- returns
deleted object as HashMap
- Exceptions thrown
IOExceptionin case of any network/object parse problems
- def delete(namespace: String, cascading: Boolean): Map[String, AnyRef]
Delete all custom resources in a specific namespace
Delete all custom resources in a specific namespace
- namespace
desired namespace
- cascading
whether dependent object need to be orphaned or not. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list.
- returns
deleted objects as HashMap
- Exceptions thrown
IOExceptionin case of any network/parsing exception
- def delete(namespace: String): Map[String, AnyRef]
Delete all custom resources in a specific namespace
Delete all custom resources in a specific namespace
- namespace
desired namespace
- returns
deleted objects as HashMap
- def edit(namespace: String, name: String, objectAsStream: InputStream): Map[String, AnyRef]
Edit a custom resource object which is a namespaced object.
Edit a custom resource object which is a namespaced object.
- namespace
desired namespace
- name
name of the custom resource
- objectAsStream
new object as a file input stream
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def edit(name: String, objectAsStream: InputStream): Map[String, AnyRef]
Edit a custom resource object which is a non-namespaced object.
Edit a custom resource object which is a non-namespaced object.
- name
name of the custom resource
- objectAsStream
new object as a file input stream
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def edit(namespace: String, name: String, objectAsString: String): Map[String, AnyRef]
Edit a custom resource object which is a namespaced object.
Edit a custom resource object which is a namespaced object.
- namespace
desired namespace
- name
name of the custom resource
- objectAsString
new object as a JSON string
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def edit(namespace: String, name: String, object: Map[String, AnyRef]): Map[String, AnyRef]
Edit a custom resource object which is a namespaced object.
Edit a custom resource object which is a namespaced object.
- namespace
desired namespace
- name
name of the custom resource
- object
new object as a HashMap
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def edit(name: String, objectAsString: String): Map[String, AnyRef]
Edit a custom resource object which is a non-namespaced object.
Edit a custom resource object which is a non-namespaced object.
- name
name of the custom resource
- objectAsString
new object as a JSON String
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- def edit(name: String, object: Map[String, AnyRef]): Map[String, AnyRef]
Edit a custom resource object which is a non-namespaced object.
Edit a custom resource object which is a non-namespaced object.
- name
name of the custom resource
- object
new object as a HashMap
- returns
Object as HashMap
- Exceptions thrown
IOExceptionin case of network/serialization failures or failures from Kubernetes API
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fetchWatchUrl(namespace: String, name: String, labels: Map[String, String], options: ListOptions): Builder
- Attributes
- protected[runner]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get(namespace: String, name: String): Map[String, AnyRef]
Get a custom resource from the cluster which is namespaced.
Get a custom resource from the cluster which is namespaced.
- namespace
desired namespace
- name
name of custom resource
- returns
Object as HashMap
- def get(name: String): Map[String, AnyRef]
Get a custom resource from the cluster which is non-namespaced.
Get a custom resource from the cluster which is non-namespaced.
- name
name of custom resource
- returns
Object as HashMap
- def getAPIGroup(): String
- Definition Classes
- OperationSupport
- def getAPIVersion(): String
- Definition Classes
- OperationSupport
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getConfig(): Config
- Definition Classes
- OperationSupport
- def getName(): String
- Definition Classes
- OperationSupport
- def getNamespace(): String
- Definition Classes
- OperationSupport
- def getNamespacedUrl[T <: AnyRef](arg0: T): URL
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.net.MalformedURLException])
- def getNamespacedUrl(): URL
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.net.MalformedURLException])
- def getNamespacedUrl(arg0: String): URL
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.net.MalformedURLException])
- def getResourceT(): String
- Definition Classes
- OperationSupport
- def getResourceUrl(): URL
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.net.MalformedURLException])
- def getResourceUrl(arg0: String, arg1: String): URL
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.net.MalformedURLException])
- def getRootUrl(): URL
- Definition Classes
- OperationSupport
- def handleCreate[T <: AnyRef, I <: AnyRef](arg0: I, arg1: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleDelete(arg0: URL, arg1: Long, arg2: DeletionPropagation, arg3: Boolean): Unit
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleDelete[T <: AnyRef](arg0: T, arg1: Long, arg2: DeletionPropagation, arg3: Boolean): Unit
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleDeploymentRollback(arg0: String, arg1: DeploymentRollback): Status
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleGet[T <: AnyRef](arg0: URL, arg1: Class[T], arg2: Map[String, String]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleGet[T <: AnyRef](arg0: URL, arg1: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleMetric[T <: AnyRef](arg0: String, arg1: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException]) @throws(classOf[java.util.concurrent.ExecutionException])
- def handlePatch[T <: AnyRef](arg0: T, arg1: Map[String, AnyRef], arg2: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handlePatch[T <: AnyRef](arg0: T, arg1: T, arg2: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleReplace[T <: AnyRef](arg0: T, arg1: Class[T], arg2: Map[String, String]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleReplace[T <: AnyRef](arg0: T, arg1: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleResponse[T <: AnyRef](arg0: OkHttpClient, arg1: Builder, arg2: Class[T], arg3: Map[String, String]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleResponse[T <: AnyRef](arg0: OkHttpClient, arg1: Builder, arg2: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleResponse[T <: AnyRef](arg0: Builder, arg1: Class[T], arg2: Map[String, String]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleResponse[T <: AnyRef](arg0: Builder, arg1: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleScale(arg0: String, arg1: Scale): Scale
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.io.IOException])
- def handleStatusUpdate[T <: AnyRef](arg0: T, arg1: Class[T]): T
- Attributes
- protected[base]
- Definition Classes
- OperationSupport
- Annotations
- @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.lang.InterruptedException]) @throws(classOf[io.fabric8.kubernetes.client.KubernetesClientException]) @throws(classOf[java.io.IOException])
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isResourceNamespaced(): Boolean
- Definition Classes
- OperationSupport
- def list(namespace: String, labels: Map[String, String]): Map[String, AnyRef]
List all custom resources in a specific namespace with some labels
List all custom resources in a specific namespace with some labels
- namespace
desired namespace
- labels
labels as a HashMap
- returns
list of custom resources as HashMap
- def list(namespace: String): Map[String, AnyRef]
List all custom resources in a specific namespace
List all custom resources in a specific namespace
- namespace
desired namespace
- returns
list of custom resources as HashMap
- def list(): Map[String, AnyRef]
List all custom resources in all namespaces
List all custom resources in all namespaces
- returns
list of custom resources as HashMap
- def load(objectAsJsonString: String): Map[String, AnyRef]
Load a custom resource object from a JSON string into a HashMap
Load a custom resource object from a JSON string into a HashMap
- objectAsJsonString
object as JSON string
- returns
custom resource as HashMap
- Exceptions thrown
IOExceptionexception in case any problem in reading json.
- def load(fileInputStream: InputStream): Map[String, AnyRef]
Load a custom resource object from an inputstream into a HashMap
Load a custom resource object from an inputstream into a HashMap
- fileInputStream
file input stream
- returns
custom resource as HashMap
- Exceptions thrown
IOExceptionexception in case any read operation fails.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateStatus(namespace: String, name: String, objectAsJsonString: String): Map[String, AnyRef]
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
- namespace
namespace of CustomResource
- name
name of CustomResource
- objectAsJsonString
CustomResource object as a JSON string
- returns
updated CustomResource as a HashMap
- Exceptions thrown
IOExceptionin case any failure to parse Map
- def updateStatus(namespace: String, name: String, objectAsStream: InputStream): Map[String, AnyRef]
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
- namespace
namespace of CustomResource
- name
name of CustomResource
- objectAsStream
CustomResource object as a stream
- returns
updated CustomResource as a HashMap
- Exceptions thrown
IOExceptionin case any failure to parse Map
- def updateStatus(name: String, objectAsStream: InputStream): Map[String, AnyRef]
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
- name
name of CustomResource
- objectAsStream
stream pointing to CustomResource
- returns
updated CustomResource as a HashMap
- Exceptions thrown
IOExceptionin case any failure to parse Map
- def updateStatus(namespace: String, name: String, objectAsMap: Map[String, AnyRef]): Map[String, AnyRef]
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
- namespace
namespace of CustomResource
- name
name of CustomResource
- objectAsMap
CustomResource as a HashMap
- returns
updated CustomResource as a HashMap
- Exceptions thrown
IOExceptionin case any failure to parse Map
- def updateStatus(name: String, objectAsJsonString: String): Map[String, AnyRef]
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
- name
name of CustomResource
- objectAsJsonString
CustomResource as a JSON string
- returns
updated CustomResource as a HashMap
- Exceptions thrown
IOExceptionin case any failure to parse Map
- def updateStatus(name: String, objectAsMap: Map[String, AnyRef]): Map[String, AnyRef]
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
Update status related to a CustomResource, this method does a PUT request on /status endpoint related to the CustomResource
- name
name of custom resource
- objectAsMap
custom resource as a HashMap
- returns
updated CustomResource as HashMap
- Exceptions thrown
IOExceptionin case any failure to parse Map
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def watch(namespace: String, name: String, labels: Map[String, String], options: ListOptions, watcher: Watcher[String]): Watch
Watch custom resources in the parameters specified.
Watch custom resources in the parameters specified.
Most of the parameters except watcher are optional, they would be skipped if passed null. Here watcher is provided for string type only. User has to deserialize the object itself.
- namespace
namespace to watch (optional
- name
name of custom resource (optional)
- labels
HashMap containing labels (optional)
- options
ListOptionslist options for watch- watcher
watcher object which reports events
- returns
watch object for watching resource
- Exceptions thrown
IOExceptionin case of network error
- def watch(namespace: String, name: String, labels: Map[String, String], resourceVersion: String, watcher: Watcher[String]): Watch
Watch custom resources in the parameters specified.
Watch custom resources in the parameters specified.
Most of the parameters except watcher are optional, they would be skipped if passed null. Here watcher is provided for string type only. User has to deserialize the object itself.
- namespace
namespace to watch (optional
- name
name of custom resource (optional)
- labels
HashMap containing labels (optional)
- resourceVersion
resource version to start watch from
- watcher
watcher object which reports events
- returns
watch object for watching resource
- Exceptions thrown
IOExceptionin case of network error
- def watch(watcher: Watcher[String]): Unit
Watchers custom resources across all namespaces.
Watchers custom resources across all namespaces. Here watcher is provided for string type only. User has to deserialize object itself.
- watcher
watcher object which reports events
- Exceptions thrown
IOExceptionin case of network error
- def watch(namespace: String, options: ListOptions, watcher: Watcher[String]): Unit
Watch a custom resource in a specific namespace with some resourceVersion.
Watch a custom resource in a specific namespace with some resourceVersion. Here watcher is provided from string type only. User has to deserialize object itself.
- namespace
namespace to watch
- options
ListOptionslist options for watching- watcher
watcher object which reports updates
- Exceptions thrown
IOExceptionin case of network error
- def watch(namespace: String, resourceVersion: String, watcher: Watcher[String]): Unit
Watch a custom resource in a specific namespace with some resourceVersion.
Watch a custom resource in a specific namespace with some resourceVersion. Here watcher is provided from string type only. User has to deserialize object itself.
- namespace
namespace to watch
- resourceVersion
resource version since when to watch
- watcher
watcher object which reports updates
- Exceptions thrown
IOExceptionin case of network error
- def watch(namespace: String, watcher: Watcher[String]): Unit
Watch custom resources in a specific namespace.
Watch custom resources in a specific namespace. Here Watcher is provided for string type only. User has to deserialize object itself.
- namespace
namespace to watch
- watcher
watcher object which reports updates with object
- Exceptions thrown
IOExceptionin case of network error