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

Read external ip from annotation

This commit is contained in:
Alena Prokharchyk
2018-04-10 16:11:27 -07:00
parent 4a8f9a6b72
commit 02e9a999fc
2 changed files with 24 additions and 1 deletions

View File

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