1
0
mirror of https://github.com/rancher/types.git synced 2025-05-09 07:36:18 +00:00

update default for ignoreDaemonSets

This commit is contained in:
kinarashah 2020-09-16 11:47:03 -07:00
parent 42b3abe8e3
commit 1fae495895

View File

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