From 7c21ccdd7e054c7a844a760c5ec337a01533b458 Mon Sep 17 00:00:00 2001 From: Steven Fitzpatrick Date: Tue, 26 Sep 2023 17:21:36 -0700 Subject: [PATCH] Rebased & Generated --- api/v1alpha5/zz_generated.conversion.go | 31 +++++++++++++++++++------ 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/api/v1alpha5/zz_generated.conversion.go b/api/v1alpha5/zz_generated.conversion.go index 402d515434..cc3ca96577 100644 --- a/api/v1alpha5/zz_generated.conversion.go +++ b/api/v1alpha5/zz_generated.conversion.go @@ -1246,6 +1246,7 @@ func autoConvert_v1beta1_Metal3ClusterStatus_To_v1alpha5_Metal3ClusterStatus(in out.LastUpdated = (*v1.Time)(unsafe.Pointer(in.LastUpdated)) out.FailureReason = (*errors.ClusterStatusError)(unsafe.Pointer(in.FailureReason)) out.FailureMessage = (*string)(unsafe.Pointer(in.FailureMessage)) + // WARNING: in.FailureDomains requires manual conversion: does not exist in peer-type out.Ready = in.Ready // WARNING: in.Conditions requires manual conversion: does not exist in peer-type return nil @@ -1715,14 +1716,10 @@ func autoConvert_v1beta1_Metal3MachineSpec_To_v1alpha5_Metal3MachineSpec(in *v1b out.MetaData = (*corev1.SecretReference)(unsafe.Pointer(in.MetaData)) out.NetworkData = (*corev1.SecretReference)(unsafe.Pointer(in.NetworkData)) out.AutomatedCleaningMode = (*string)(unsafe.Pointer(in.AutomatedCleaningMode)) + // WARNING: in.FailureDomain requires manual conversion: does not exist in peer-type return nil } -// Convert_v1beta1_Metal3MachineSpec_To_v1alpha5_Metal3MachineSpec is an autogenerated conversion function. -func Convert_v1beta1_Metal3MachineSpec_To_v1alpha5_Metal3MachineSpec(in *v1beta1.Metal3MachineSpec, out *Metal3MachineSpec, s conversion.Scope) error { - return autoConvert_v1beta1_Metal3MachineSpec_To_v1alpha5_Metal3MachineSpec(in, out, s) -} - func autoConvert_v1alpha5_Metal3MachineStatus_To_v1beta1_Metal3MachineStatus(in *Metal3MachineStatus, out *v1beta1.Metal3MachineStatus, s conversion.Scope) error { out.LastUpdated = (*v1.Time)(unsafe.Pointer(in.LastUpdated)) out.FailureReason = (*errors.MachineStatusError)(unsafe.Pointer(in.FailureReason)) @@ -1785,7 +1782,17 @@ func Convert_v1beta1_Metal3MachineTemplate_To_v1alpha5_Metal3MachineTemplate(in func autoConvert_v1alpha5_Metal3MachineTemplateList_To_v1beta1_Metal3MachineTemplateList(in *Metal3MachineTemplateList, out *v1beta1.Metal3MachineTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]v1beta1.Metal3MachineTemplate)(unsafe.Pointer(&in.Items)) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]v1beta1.Metal3MachineTemplate, len(*in)) + for i := range *in { + if err := Convert_v1alpha5_Metal3MachineTemplate_To_v1beta1_Metal3MachineTemplate(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } return nil } @@ -1796,7 +1803,17 @@ func Convert_v1alpha5_Metal3MachineTemplateList_To_v1beta1_Metal3MachineTemplate func autoConvert_v1beta1_Metal3MachineTemplateList_To_v1alpha5_Metal3MachineTemplateList(in *v1beta1.Metal3MachineTemplateList, out *Metal3MachineTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Metal3MachineTemplate)(unsafe.Pointer(&in.Items)) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Metal3MachineTemplate, len(*in)) + for i := range *in { + if err := Convert_v1beta1_Metal3MachineTemplate_To_v1alpha5_Metal3MachineTemplate(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } return nil }