mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
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.
This commit is contained in:
commit
8fe7a2decb
@ -557,6 +557,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
|
||||||
|
Loading…
Reference in New Issue
Block a user