Registration

object Registration

Registers CRD objects

class Object
trait Matchable
class Any

Value members

Concrete methods

def registerIfMissing[T](customResourceDefinition: ZIO[Blocking, Throwable, CustomResourceDefinition])(implicit metadata: ResourceMetadata[T]): ZIO[Logging & Blocking & CustomResourceDefinitions, Throwable, Unit]

Register a Custom Resource Definition if it is not registered yet

Register a Custom Resource Definition if it is not registered yet

When using the zio-k8s-crd plugin, the effect to provide the custom resource definition is automatically generated.

Type Params
T

Resource type

Value Params
customResourceDefinition

Effect returning the custom resource definition

metadata

Resource metadata