make portallocator.ErrNotInRange a type

This commit is contained in:
juanvallejo
2016-09-23 10:21:20 -04:00
parent 6b83f89d47
commit cfbdcec7d6
5 changed files with 24 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ type ServiceCommonGeneratorV1 struct {
TCP []string
Type api.ServiceType
ClusterIP string
NodePort int32
NodePort int
}
type ServiceClusterIPGeneratorV1 struct {
@@ -183,7 +183,7 @@ func (s ServiceCommonGeneratorV1) StructuredGenerate() (runtime.Object, error) {
Port: port,
TargetPort: targetPort,
Protocol: api.Protocol("TCP"),
NodePort: s.NodePort,
NodePort: int32(s.NodePort),
})
}