Commit 352d64ab authored by Lou Yihua's avatar Lou Yihua

Eliminate "Unknown service type: ExternalName"

As the ExternalName service is supported, the warning message: "Unknown service type: ExternalName" should be eliminated from rest.go.
parent 61b7b3fb
...@@ -556,6 +556,8 @@ func shouldAssignNodePorts(service *api.Service) bool { ...@@ -556,6 +556,8 @@ func shouldAssignNodePorts(service *api.Service) bool {
return true return true
case api.ServiceTypeClusterIP: case api.ServiceTypeClusterIP:
return false return false
case api.ServiceTypeExternalName:
return false
default: default:
glog.Errorf("Unknown service type: %v", service.Spec.Type) glog.Errorf("Unknown service type: %v", service.Spec.Type)
return false return false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment