K8sObjectOps

trait K8sObjectOps[T]

Extension methods for Kubernetes resources

Extension methods for Kubernetes resources

This is a common implementation for all the implicit classes providing extension methods for the generated Kuberentes model types. The extension methods are just delegating the calls to the resource's K8sObject implementation.

Type Params
T

Resource type to be extended

class Object
trait Matchable
class Any
class Ops[T]
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops
class Ops

Value members

Concrete methods

def attachOwner(ownerName: String, ownerUid: String, ownerType: K8sResourceType): T

Attach another resource as the owner of this one

Attach another resource as the owner of this one

Value Params
ownerName

Owner's name

ownerType

Owner's resource type metadata

ownerUid

Owner's UID

Returns

Object with the attached owner described in its metadata

def generation: Long

Gets the geneation of the object or 0 if it is new

Gets the geneation of the object or 0 if it is new

Gets the metadata of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

Gets the metadata of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

def getName: IO[K8sFailure, String]

Gets the name of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

Gets the name of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

def getUid: IO[K8sFailure, String]

Gets the UID of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

Gets the UID of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

def isOwnedBy[OwnerT](owner: OwnerT)(`evidence$3`: K8sObject[OwnerT], `evidence$4`: ResourceMetadata[OwnerT]): Boolean

Verifies ownership between the resources

Verifies ownership between the resources

Type Params
OwnerT

Type of the owner resource

Value Params
owner

Possible owner of this resource

Returns

True if owner owns this resource

Creates a new object with its metadata modified by the given function f

Creates a new object with its metadata modified by the given function f

Value Params
f

Function to modify the object's metadata with

Returns

Object with modified metadata

Gets the metadata of the object

Gets the metadata of the object

def tryAttachOwner[OwnerT](owner: OwnerT)(`evidence$1`: K8sObject[OwnerT], `evidence$2`: ResourceMetadata[OwnerT]): IO[K8sFailure, T]

Tries to attach another resource as the owner of this one. Can fail with com.coralogix.zio.k8s.client.UndefinedField if the owner does not have all the required metadata.

Tries to attach another resource as the owner of this one. Can fail with com.coralogix.zio.k8s.client.UndefinedField if the owner does not have all the required metadata.

Type Params
OwnerT

Type of the owner

Value Params
owner

Owner resource

Returns

Object with the attached owner described in its metadata

Abstract fields

protected val impl: K8sObject[T]
protected val obj: T