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:
@@ -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
|
||||
|
Reference in New Issue
Block a user