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

Respect natively set host port

This commit is contained in:
Alena Prokharchyk
2019-10-14 22:17:52 -07:00
parent 9d37fcf2e9
commit 3cae278d7a
2 changed files with 50 additions and 7 deletions

View File

@@ -514,6 +514,7 @@ func podTypes(schemas *types.Schemas) *types.Schemas {
).
AddMapperForType(&Version, v1.ContainerPort{},
m.Move{From: "hostIP", To: "hostIp"},
m.Copy{From: "hostPort", To: "sourcePort"},
m.Drop{Field: "hostPort"},
).
AddMapperForType(&Version, v1.Handler{},