Esempio n. 1
0
func deepCopy_api_LoadBalancerStatus(in api.LoadBalancerStatus, out *api.LoadBalancerStatus, c *conversion.Cloner) error {
	if in.Ingress != nil {
		out.Ingress = make([]api.LoadBalancerIngress, len(in.Ingress))
		for i := range in.Ingress {
			if err := deepCopy_api_LoadBalancerIngress(in.Ingress[i], &out.Ingress[i], c); err != nil {
				return err
			}
		}
	} else {
		out.Ingress = nil
	}
	return nil
}
Esempio n. 2
0
func buildServiceStatus(ingresses [][]string) api.LoadBalancerStatus {
	status := api.LoadBalancerStatus{
		Ingress: []api.LoadBalancerIngress{},
	}
	for _, element := range ingresses {
		ingress := api.LoadBalancerIngress{IP: element[0], Hostname: element[1]}
		status.Ingress = append(status.Ingress, ingress)
	}
	return status
}