Skip to content

Commit

Permalink
Merge pull request #97 from JackyZhangFuDan/main
Browse files Browse the repository at this point in the history
bugfix: copy from non-storage version instead of storage version
  • Loading branch information
k8s-ci-robot committed Oct 17, 2023
2 parents 9a3eceb + 3277a16 commit 4d54d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/builder/resource/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func AddToScheme(objs ...Object) func(s *runtime.Scheme) error {
return err
}
if err := s.AddConversionFunc(storageVersionObj, obj, func(from, to interface{}, _ conversion.Scope) error {
return from.(MultiVersionObject).ConvertFromStorageVersion(to.(runtime.Object))
return to.(MultiVersionObject).ConvertFromStorageVersion(from.(runtime.Object))
}); err != nil {
return err
}
Expand Down

0 comments on commit 4d54d00

Please sign in to comment.