mirror of
https://github.com/rancher/types.git
synced 2025-09-16 14:59:16 +00:00
Merge pull request #361 from alena1108/apr10
Read external ip from annotation
This commit is contained in:
@@ -95,6 +95,8 @@ func nativeNodeTypes(schemas *types.Schemas) *types.Schemas {
|
||||
"taints": "ru",
|
||||
"unschedulable": "ru",
|
||||
}}).
|
||||
AddMapperForType(&Version, v1.Node{},
|
||||
&mapper.NodeAddressAnnotationMapper{}).
|
||||
MustImportAndCustomize(&Version, v1.NodeSpec{}, func(schema *types.Schema) {
|
||||
schema.CodeName = "InternalNodeSpec"
|
||||
schema.CodeNamePlural = "InternalNodeSpecs"
|
||||
|
Reference in New Issue
Block a user