RoleBinding
RoleBinding grants a named role to the selected subjects and scope.
| API version | kudurru.io/v1alpha1 |
| Kind | RoleBinding |
| Scope | Namespaced |
| Resource | rolebindings.kudurru.io |
| Short names | krb |
Spec
RoleBindingSpec grants Role at Scope to Subjects.
| Field | Type | Description |
|---|---|---|
spec.role | string | Required. Length: 1 to 63 |
spec.scope | object | BindingScope 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.kind | string | Kind 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.name | string | Length: at most 253 |
spec.subjects | []object | Required. Items: 1 to 256 |
spec.subjects[].kind | string | Required. Kind is User, Group or ServiceAccount. One of: User, Group, ServiceAccount |
spec.subjects[].name | string | Required. Length: 1 to 253 |
spec.subjects[].namespace | string | Length: 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