Service REST test: better IP and port alloc checks

This commit is contained in:
Tim Hockin
2021-07-01 23:01:36 -07:00
parent 43b13840db
commit 54b6a416fb
4 changed files with 46 additions and 29 deletions

View File

@@ -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.