Eliminate "Unknown service type: ExternalName"

As the ExternalName service is supported, the warning message: "Unknown
service type: ExternalName" should be eliminated from rest.go.
This commit is contained in:
Lou Yihua 2017-01-24 13:15:36 +08:00
parent 61b7b3fb66
commit 352d64ab0d

View File

@ -556,6 +556,8 @@ func shouldAssignNodePorts(service *api.Service) bool {
return true
case api.ServiceTypeClusterIP:
return false
case api.ServiceTypeExternalName:
return false
default:
glog.Errorf("Unknown service type: %v", service.Spec.Type)
return false