mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
37 lines
719 B
CUE
37 lines
719 B
CUE
|
package kind
|
||
|
|
||
|
name: "RoleBinding"
|
||
|
maturity: "merged"
|
||
|
description: "Role bindings links a user|team to a configured role"
|
||
|
|
||
|
lineage: schemas: [{
|
||
|
version: [0, 0]
|
||
|
schema: {
|
||
|
spec: {
|
||
|
// The role we are discussing
|
||
|
role: #BuiltinRoleRef | #CustomRoleRef
|
||
|
|
||
|
// The team or user that has the specified role
|
||
|
subject: #RoleBindingSubject
|
||
|
} @cuetsy(kind="interface")
|
||
|
|
||
|
#CustomRoleRef: {
|
||
|
kind: "Role"
|
||
|
name: string
|
||
|
} @cuetsy(kind="interface")
|
||
|
|
||
|
#BuiltinRoleRef: {
|
||
|
kind: "BuiltinRole"
|
||
|
name: "viewer" | "editor" | "admin"
|
||
|
} @cuetsy(kind="interface")
|
||
|
|
||
|
#RoleBindingSubject: {
|
||
|
kind: "Team" | "User"
|
||
|
|
||
|
// The team/user identifier name
|
||
|
name: string
|
||
|
} @cuetsy(kind="interface")
|
||
|
}
|
||
|
},
|
||
|
]
|