fix nodeport router

This commit is contained in:
Jeff
2019-04-23 19:41:18 +08:00
committed by zryfish
parent dd963c0be4
commit addf11c38b
3 changed files with 26 additions and 14 deletions

View File

@@ -144,9 +144,8 @@ func parseParameter(router Router) (routerType v1.ServiceType, annotationMap map
routerType = v1.ServiceTypeNodePort
if strings.Compare(strings.ToLower(router.RouterType), "loadbalancer") == 0 {
return v1.ServiceTypeLoadBalancer, router.Annotations, nil
} else {
return v1.ServiceTypeNodePort, make(map[string]string, 0), nil
routerType = v1.ServiceTypeLoadBalancer
}
return routerType, router.Annotations, nil
}