func autoConvert_v1_RouteIngress_To_api_RouteIngress(in *RouteIngress, out *api.RouteIngress, s conversion.Scope) error { out.Host = in.Host out.RouterName = in.RouterName out.Conditions = *(*[]api.RouteIngressCondition)(unsafe.Pointer(&in.Conditions)) out.WildcardPolicy = api.WildcardPolicyType(in.WildcardPolicy) return nil }
func autoConvert_v1_RouteIngress_To_api_RouteIngress(in *RouteIngress, out *route_api.RouteIngress, s conversion.Scope) error { out.Host = in.Host out.RouterName = in.RouterName if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]route_api.RouteIngressCondition, len(*in)) for i := range *in { if err := Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Conditions = nil } return nil }
func autoConvert_v1_RouteIngress_To_api_RouteIngress(in *RouteIngress, out *api.RouteIngress, s conversion.Scope) error { SetDefaults_RouteIngress(in) out.Host = in.Host out.RouterName = in.RouterName if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]api.RouteIngressCondition, len(*in)) for i := range *in { if err := Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Conditions = nil } out.WildcardPolicy = api.WildcardPolicyType(in.WildcardPolicy) return nil }
func autoConvert_v1_RouteIngress_To_api_RouteIngress(in *RouteIngress, out *route_api.RouteIngress, s conversion.Scope) error { if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { defaulting.(func(*RouteIngress))(in) } out.Host = in.Host out.RouterName = in.RouterName if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]route_api.RouteIngressCondition, len(*in)) for i := range *in { if err := Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Conditions = nil } return nil }