Updated comments

Updated documentation
Fixed e2e test
This commit is contained in:
Kenneth Shelton
2015-12-06 21:23:56 +00:00
parent d399a8f8cc
commit 9e6c45c395
6 changed files with 79 additions and 91 deletions

View File

@@ -1458,7 +1458,7 @@ func ValidateService(service *api.Service) field.ErrorList {
for i := range service.Spec.Ports {
portPath := portsPath.Index(i)
if !supportedPortProtocols.Has(string(service.Spec.Ports[i].Protocol)) {
allErrs = append(allErrs, validation.NewInvalidError(portPath.Child("protocol"), service.Spec.Ports[i].Protocol, "cannot create an external load balancer with non-TCP/UDP ports"))
allErrs = append(allErrs, field.Invalid(portPath.Child("protocol"), service.Spec.Ports[i].Protocol, "cannot create an external load balancer with non-TCP/UDP ports"))
}
}
}