Skip to content

Commit

Permalink
feat: add example manual conversion implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
  • Loading branch information
bavarianbidi authored and rafalgalaw committed Sep 27, 2024
1 parent 3e5c844 commit 4231a28
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/v1alpha1/organization_conversion.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package v1alpha1

import (
v1beta1 "github.com/mercedes-benz/garm-operator/api/v1beta1"
apiconversion "k8s.io/apimachinery/pkg/conversion"
)

func Convert_v1alpha1_OrganizationSpec_To_v1beta1_OrganizationSpec(in *OrganizationSpec, out *v1beta1.OrganizationSpec, s apiconversion.Scope) error {

err := autoConvert_v1alpha1_OrganizationSpec_To_v1beta1_OrganizationSpec(in, out, s)
if err != nil {
return err
}

return nil
}

0 comments on commit 4231a28

Please sign in to comment.