fixes from testing

pull/6/head
Tim Hockin 2015-03-31 09:30:56 -07:00
parent eeff1b74fb
commit b420871a11
2 changed files with 2 additions and 1 deletions

View File

@ -865,6 +865,7 @@ func ValidateServiceUpdate(oldService, service *api.Service) errs.ValidationErro
allErrs = append(allErrs, errs.NewFieldInvalid("spec.portalIP", service.Spec.PortalIP, "field is immutable"))
}
allErrs = append(allErrs, ValidateService(service)...)
return allErrs
}

View File

@ -340,7 +340,7 @@ func describeService(service *api.Service, endpoints *api.Endpoints, events *api
if name == "" {
name = "<unnamed>"
}
fmt.Fprintf(out, "Port:\t%s\t%d/%s\n", sp.Name, sp.Port, sp.Protocol)
fmt.Fprintf(out, "Port:\t%s\t%d/%s\n", name, sp.Port, sp.Protocol)
}
fmt.Fprintf(out, "Endpoints:\t%s\n", formatEndpoints(endpoints))
fmt.Fprintf(out, "Session Affinity:\t%s\n", service.Spec.SessionAffinity)