From 49a7a24afc684d2c44d8b57442ce49cc184fd1ce Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 18 Jan 2018 16:48:00 -0700 Subject: [PATCH] Make builtin no create/no update --- apis/management.cattle.io/v3/authz_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/authz_types.go b/apis/management.cattle.io/v3/authz_types.go index 58914dcd..e7100104 100644 --- a/apis/management.cattle.io/v3/authz_types.go +++ b/apis/management.cattle.io/v3/authz_types.go @@ -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"`