func autoConvert_v1_ClusterResourceQuotaSpec_To_api_ClusterResourceQuotaSpec(in *ClusterResourceQuotaSpec, out *quota_api.ClusterResourceQuotaSpec, s conversion.Scope) error { out.Selector = in.Selector if err := api_v1.Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(&in.Quota, &out.Quota, s); err != nil { return err } return nil }
func autoConvert_v1_ClusterResourceQuotaSpec_To_api_ClusterResourceQuotaSpec(in *ClusterResourceQuotaSpec, out *quota_api.ClusterResourceQuotaSpec, s conversion.Scope) error { if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(unversioned.LabelSelector) // TODO: Inefficient conversion - can we improve it? if err := s.Convert(*in, *out, 0); err != nil { return err } } else { out.Selector = nil } // TODO: Inefficient conversion - can we improve it? if err := s.Convert(&in.Quota, &out.Quota, 0); err != nil { return err } return nil }