Merge pull request #40342 from louyihua/remove_warning

Automatic merge from submit-queue (batch tested with PRs 40111, 40368, 40342, 40274, 39443)

Eliminate "Unknown service type: ExternalName"

When creating an ExternalName service, rest.go still generate the warning message "Unknown service type: ExternalName". This should be eliminated as this type of service is supported now.
pull/6/head
Kubernetes Submit Queue 2017-01-31 19:18:41 -08:00 committed by GitHub
commit 8fe7a2decb
1 changed files with 2 additions and 0 deletions

View File

@ -557,6 +557,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