1
0
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:
Darren Shepherd 2018-01-18 16:48:00 -07:00
parent 7c4b4db86f
commit 49a7a24afc

View File

@ -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"`