case class RoleBinding(metadata: Optional[ObjectMeta] = Optional.Absent, roleRef: RoleRef, subjects: Optional[Vector[Subject]] = Optional.Absent) extends Product with Serializable
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.
- subjects
Subjects holds references to the objects the role applies to.
- Alphabetic
- By Inheritance
- RoleBinding
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RoleBinding(metadata: Optional[ObjectMeta] = Optional.Absent, roleRef: RoleRef, subjects: Optional[Vector[Subject]] = Optional.Absent)
- subjects
Subjects holds references to the objects the role applies to.
Value Members
-
def
getMetadata: IO[K8sFailure, ObjectMeta]
Gets metadata.
Gets metadata.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getRoleRef: IO[K8sFailure, RoleRef]
Gets roleRef.
Gets roleRef.
This effect always succeeds, it is safe to use the field roleRef directly.
-
def
getSubjects: IO[K8sFailure, Vector[Subject]]
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.
- val metadata: Optional[ObjectMeta]
- val roleRef: RoleRef
- val subjects: Optional[Vector[Subject]]