func Convert_api_ResourceQuotasStatusByNamespace_To_v1_ResourceQuotasStatusByNamespace(in *internal.ResourceQuotasStatusByNamespace, out *ResourceQuotasStatusByNamespace, s conversion.Scope) error { for e := in.OrderedKeys().Front(); e != nil; e = e.Next() { namespace := e.Value.(string) status, _ := in.Get(namespace) versionedStatus := &kapiv1.ResourceQuotaStatus{} kapiv1.Convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(&status, versionedStatus, s) if out == nil { out = &ResourceQuotasStatusByNamespace{} } *out = append(*out, ResourceQuotaStatusByNamespace{Namespace: namespace, Status: *versionedStatus}) } return nil }
func Convert_v1_ResourceQuotasStatusByNamespace_To_api_ResourceQuotasStatusByNamespace(in *ResourceQuotasStatusByNamespace, out *internal.ResourceQuotasStatusByNamespace, s conversion.Scope) error { if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { defaulting.(func(*ResourceQuotasStatusByNamespace))(in) } if in == nil { return nil } for _, curr := range *in { internalStatus := &kapi.ResourceQuotaStatus{} kapiv1.Convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(&curr.Status, internalStatus, s) out.Insert(curr.Namespace, *internalStatus) } return nil }