Skip to content

Commit

Permalink
Add conversion for m3m spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sf1tzp committed Sep 27, 2023
1 parent 7c21ccd commit cd0cb80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions api/v1alpha5/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ func Convert_v1beta1_FromPool_To_v1alpha5_FromPool(in *v1beta1.FromPool, out *Fr
return autoConvert_v1beta1_FromPool_To_v1alpha5_FromPool(in, out, s)
}

func Convert_v1beta1_Metal3MachineSpec_To_v1alpha5_Metal3MachineSpec(in *v1beta1.Metal3MachineSpec, out *Metal3MachineSpec, s apiconversion.Scope) error {
// ProviderID was added with v1beta1.
return autoConvert_v1beta1_Metal3MachineSpec_To_v1alpha5_Metal3MachineSpec(in, out, s)
}

func (src *Metal3DataTemplateList) ConvertTo(dstRaw conversion.Hub) error {
dst := dstRaw.(*v1beta1.Metal3DataTemplateList)
return Convert_v1alpha5_Metal3DataTemplateList_To_v1beta1_Metal3DataTemplateList(src, dst, nil)
Expand Down
10 changes: 5 additions & 5 deletions api/v1alpha5/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd0cb80

Please sign in to comment.