1
0
mirror of https://github.com/rancher/types.git synced 2025-08-01 04:57:05 +00:00

Make node annotation editable

This commit is contained in:
gitlawr 2019-08-29 17:18:16 +08:00 committed by Craig Jellick
parent 3aced2bfa2
commit e09365c769

View File

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