From 1fae4958952d2de14926fd008ca7bd4a0d81c617 Mon Sep 17 00:00:00 2001 From: kinarashah Date: Wed, 16 Sep 2020 11:47:03 -0700 Subject: [PATCH] update default for ignoreDaemonSets --- apis/management.cattle.io/v3/schema/schema.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index aaf81b8b..7190bab4 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -379,7 +379,11 @@ func nodeTypes(schemas *types.Schemas) *types.Schemas { Update: false, } }). - MustImport(&Version, v3.NodeDrainInput{}). + MustImportAndCustomize(&Version, v3.NodeDrainInput{}, func(schema *types.Schema) { + dsField := schema.ResourceFields["ignoreDaemonSets"] + test := true + dsField.Default = &test + }). MustImportAndCustomize(&Version, v3.Node{}, func(schema *types.Schema) { labelField := schema.ResourceFields["labels"] labelField.Create = true