1
0
mirror of https://github.com/rancher/types.git synced 2025-09-19 00:46:53 +00:00

Merge pull request #1180 from kinarashah/drain

[2.4] update default for ignoreDaemonSets
This commit is contained in:
Kinara Shah
2020-09-18 11:40:36 -07:00
committed by GitHub

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