expose: Enable exposing multiport objects

The generated service will inherit all the ports from the exposed object.
This commit is contained in:
kargakis
2015-10-12 11:12:36 +02:00
parent 578d752174
commit 7d0e691520
8 changed files with 237 additions and 37 deletions

View File

@@ -235,6 +235,8 @@ func NewAPIFactory() (*cmdutil.Factory, *testFactory, runtime.Codec) {
}
rf := cmdutil.NewFactory(nil)
f.PodSelectorForObject = rf.PodSelectorForObject
f.PortsForObject = rf.PortsForObject
f.LabelsForObject = rf.LabelsForObject
f.CanBeExposed = rf.CanBeExposed
return f, t, testapi.Default.Codec()
}