K8sObjectStatus

trait K8sObjectStatus[ResourceT, StatusT]

Common operations for every Kubernetes resource type supporting status subresources.

Type parameters:
ResourceT

Resource type

StatusT

Subresource type

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def mapStatus(f: StatusT => StatusT)(obj: ResourceT): ResourceT

Modifies the status of the object with the given function f

Modifies the status of the object with the given function f

Value parameters:
f

Function modifying the status

def status(obj: ResourceT): Optional[StatusT]

Gets the status of the object

Gets the status of the object

Concrete methods

def getStatus(obj: ResourceT): IO[K8sFailure, StatusT]

Get the status of the object and fail with UndefinedField if it is not present.

Get the status of the object and fail with UndefinedField if it is not present.