From e09365c769f508f83f4a31a3c428e3e33ed23a38 Mon Sep 17 00:00:00 2001 From: gitlawr Date: Thu, 29 Aug 2019 17:18:16 +0800 Subject: [PATCH] Make node annotation editable --- apis/management.cattle.io/v3/schema/schema.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index 2454ee04..698b5c6f 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -348,6 +348,10 @@ func nodeTypes(schemas *types.Schemas) *types.Schemas { labelField.Create = true labelField.Update = true schema.ResourceFields["labels"] = labelField + annotationField := schema.ResourceFields["annotations"] + annotationField.Create = true + annotationField.Update = true + schema.ResourceFields["annotations"] = annotationField unschedulable := schema.ResourceFields["unschedulable"] unschedulable.Create = false unschedulable.Update = false