1
0
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:
Alena Prokharchyk
2018-04-12 09:42:15 -07:00
committed by GitHub
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"