util.HandleError(fmt.Errorf("the cluster IP %s for service %s/%s was assigned to multiple services; please recreate",ip,svc.Name,svc.Namespace))
runtime.HandleError(fmt.Errorf("the cluster IP %s for service %s/%s was assigned to multiple services; please recreate",ip,svc.Name,svc.Namespace))
caseipallocator.ErrNotInRange:
caseipallocator.ErrNotInRange:
// TODO: send event
// TODO: send event
// cluster IP is broken, reallocate
// cluster IP is broken, reallocate
util.HandleError(fmt.Errorf("the cluster IP %s for service %s/%s is not within the service CIDR %s; please recreate",ip,svc.Name,svc.Namespace,c.network))
runtime.HandleError(fmt.Errorf("the cluster IP %s for service %s/%s is not within the service CIDR %s; please recreate",ip,svc.Name,svc.Namespace,c.network))
caseipallocator.ErrFull:
caseipallocator.ErrFull:
// TODO: send event
// TODO: send event
returnfmt.Errorf("the service CIDR %v is full; you must widen the CIDR in order to create new services",r)
returnfmt.Errorf("the service CIDR %v is full; you must widen the CIDR in order to create new services",r)
util.HandleError(fmt.Errorf("the port %d for service %s/%s was assigned to multiple services; please recreate",port,svc.Name,svc.Namespace))
runtime.HandleError(fmt.Errorf("the port %d for service %s/%s was assigned to multiple services; please recreate",port,svc.Name,svc.Namespace))
caseportallocator.ErrNotInRange:
caseportallocator.ErrNotInRange:
// TODO: send event
// TODO: send event
// port is broken, reallocate
// port is broken, reallocate
util.HandleError(fmt.Errorf("the port %d for service %s/%s is not within the port range %v; please recreate",port,svc.Name,svc.Namespace,c.portRange))
runtime.HandleError(fmt.Errorf("the port %d for service %s/%s is not within the port range %v; please recreate",port,svc.Name,svc.Namespace,c.portRange))
caseportallocator.ErrFull:
caseportallocator.ErrFull:
// TODO: send event
// TODO: send event
returnfmt.Errorf("the port range %v is full; you must widen the port range in order to create new services",c.portRange)
returnfmt.Errorf("the port range %v is full; you must widen the port range in order to create new services",c.portRange)