mirror of https://github.com/k3s-io/k3s
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
commit
8fe7a2decb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue