TestResourceStatusClient

com.coralogix.zio.k8s.client.test.TestResourceStatusClient
final class TestResourceStatusClient[StatusT, T](client: Resource[T])(implicit r: K8sObject[T], rs: K8sObjectStatus[T, StatusT]) extends ResourceStatus[StatusT, T]

Test implementation of ResourceStatus to be used from unit tests

Type parameters

StatusT

Status subresource type

T

Resource type

Value parameters

client

The test client implementation to attach to

Attributes

Graph
Supertypes
trait ResourceStatus[StatusT, T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def getStatus(name: String, namespace: Option[K8sNamespace]): IO[K8sFailure, T]

Get the status of a given subresource by name

Get the status of a given subresource by name

Value parameters

name

Name of the resource

namespace

Namespace. For namespaced resources it must be Some, for cluster resources it must be None.

Attributes

Returns

Returns the full resource object but with possibly the non-status fields absent.

Definition Classes
override def replaceStatus(of: T, updatedStatus: StatusT, namespace: Option[K8sNamespace], dryRun: Boolean): IO[K8sFailure, T]

Replaces the status of a resource that was previously get from server.

Replaces the status of a resource that was previously get from server.

Use either getStatus or Resource.get to retrieve a value of the resource by name, and then call this method to update its status.

Value parameters

dryRun

If true, the request is sent to the server but it will not create the resource.

namespace

Namespace. For namespaced resources it must be Some, for cluster resources it must be None.

of

The resource object to manipulate

updatedStatus

Updated status value

Attributes

Returns

Returns the updated resource (not just the status)

Definition Classes