RoleBinding

RoleBinding grants a named role to the selected subjects and scope.

API versionkudurru.io/v1alpha1
KindRoleBinding
ScopeNamespaced
Resourcerolebindings.kudurru.io
Short nameskrb

Spec

RoleBindingSpec grants Role at Scope to Subjects.

FieldTypeDescription
spec.rolestringRequired.
Length: 1 to 63
spec.scopeobjectBindingScope narrows a role binding (§8.5).
Validation: cluster scope has no name; other scopes require a name (!has(self.kind) || self.kind == 'cluster' ? !has(self.name) || self.name.size() == 0 : has(self.name) && self.name.size() > 0)
spec.scope.kindstringKind is cluster, zone, zonegroup or clientgroup. A zonegroup binding covers every DNSZone labeled kudurru.io/zonegroup=<name> and the record sets of those zones. clientgroup is reserved: it is accepted, but no request carries such a scope, so the binding grants nothing.
One of: cluster, zone, zonegroup, clientgroup
spec.scope.namestringLength: at most 253
spec.subjects[]objectRequired.
Items: 1 to 256
spec.subjects[].kindstringRequired. Kind is User, Group or ServiceAccount.
One of: User, Group, ServiceAccount
spec.subjects[].namestringRequired.
Length: 1 to 253
spec.subjects[].namespacestringLength: at most 63

Example

deploy/kustomize/samples/kudurru.io_v1alpha1_rolebinding.yaml:

apiVersion: kudurru.io/v1alpha1
kind: RoleBinding
metadata:
  name: home-editors
  namespace: dns
spec:
  role: operator
  scope:
    kind: zone
    name: home
  subjects:
    - kind: ServiceAccount
      name: automation
      namespace: dns

Source: docs-site/content/reference/crds/rolebinding.md