RoleBinding

case class RoleBinding(metadata: Optional[ObjectMeta], roleRef: RoleRef, subjects: Optional[Vector[Subject]])

RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.

Value parameters:
subjects

Subjects holds references to the objects the role applies to.

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Gets metadata.

Gets metadata.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Gets roleRef.

Gets roleRef.

This effect always succeeds, it is safe to use the field roleRef directly.

Subjects holds references to the objects the role applies to.

Subjects holds references to the objects the role applies to.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Inherited methods

def attachOwner(ownerName: String, ownerUid: String, ownerType: K8sResourceType, kind: String): RoleBinding
Implicitly added by Ops

Attach another resource as the owner of this one

Attach another resource as the owner of this one

Value parameters:
kind

Owner's resource kind

ownerName

Owner's name

ownerType

Owner's resource type metadata

ownerUid

Owner's UID

Returns:

Object with the attached owner described in its metadata

Inherited from:
K8sObjectOps
Implicitly added by Ops

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

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

Inherited from:
K8sObjectOps
Implicitly added by Ops

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

Inherited from:
K8sObjectOps
Implicitly added by Ops

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

Inherited from:
K8sObjectOps
Implicitly added by Ops

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

Inherited from:
K8sObjectOps
def isOwnedBy[OwnerT : ResourceMetadata](owner: OwnerT): Boolean
Implicitly added by Ops

Verifies ownership between the resources

Verifies ownership between the resources

Type parameters:
OwnerT

Type of the owner resource

Value parameters:
owner

Possible owner of this resource

Returns:

True if owner owns this resource

Inherited from:
K8sObjectOps
Implicitly added by Ops

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 parameters:
f

Function to modify the object's metadata with

Returns:

Object with modified metadata

Inherited from:
K8sObjectOps
Implicitly added by Ops

Gets the metadata of the object

Gets the metadata of the object

Inherited from:
K8sObjectOps
Inherited from:
Product
def tryAttachOwner[OwnerT : ResourceMetadata](owner: OwnerT): IO[K8sFailure, RoleBinding]
Implicitly added by Ops

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 parameters:
OwnerT

Type of the owner

Value parameters:
owner

Owner resource

Returns:

Object with the attached owner described in its metadata

Inherited from:
K8sObjectOps

Concrete fields

override protected val impl: K8sObject[RoleBinding]
Implicitly added by Ops
protected val obj: RoleBinding
Implicitly added by Ops