mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 01:23:48 +00:00
Service REST test: better IP and port alloc checks
This commit is contained in:
@@ -62,6 +62,7 @@ func SetTypeClusterIP(svc *api.Service) {
|
||||
svc.Spec.Ports[i].NodePort = 0
|
||||
}
|
||||
svc.Spec.ExternalName = ""
|
||||
svc.Spec.ExternalTrafficPolicy = ""
|
||||
}
|
||||
|
||||
// SetTypeNodePort sets the service type to NodePort and clears other fields.
|
||||
|
Reference in New Issue
Block a user