mirror of
https://github.com/rancher/types.git
synced 2025-08-28 16:50:30 +00:00
Make builtin no create/no update
This commit is contained in:
parent
7c4b4db86f
commit
49a7a24afc
@ -56,7 +56,7 @@ type GlobalRole struct {
|
||||
DisplayName string `json:"displayName,omitempty" norman:"required"`
|
||||
Description string `json:"description"`
|
||||
Rules []rbacv1.PolicyRule `json:"rules,omitempty"`
|
||||
Builtin bool `json:"builtin"`
|
||||
Builtin bool `json:"builtin" norman:"nocreate,noupdate"`
|
||||
}
|
||||
|
||||
type GlobalRoleBinding struct {
|
||||
@ -74,7 +74,7 @@ type RoleTemplate struct {
|
||||
DisplayName string `json:"displayName,omitempty" norman:"required"`
|
||||
Description string `json:"description"`
|
||||
Rules []rbacv1.PolicyRule `json:"rules,omitempty"`
|
||||
Builtin bool `json:"builtin"`
|
||||
Builtin bool `json:"builtin" norman:"nocreate,noupdate"`
|
||||
External bool `json:"external"`
|
||||
Hidden bool `json:"hidden"`
|
||||
Context string `json:"context"`
|
||||
|
Loading…
Reference in New Issue
Block a user