Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Make DeepCopy compatible with old named map type usages
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com>
  • Loading branch information
njhale committed Sep 8, 2023
1 parent e5620e0 commit f19a9b3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 23 deletions.
6 changes: 4 additions & 2 deletions pkg/apis/api.acorn.io/v1/zz_generated.deepcopy.go

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

6 changes: 6 additions & 0 deletions pkg/apis/internal.acorn.io/v1/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ func (in *GenericMap) DeepCopyInto(out *GenericMap) {
}
}

func (in GenericMap) DeepCopy() GenericMap {
var out GenericMap
in.DeepCopyInto(&out)
return out
}

func NewGenericMap(data map[string]any) *GenericMap {
if data == nil {
return nil
Expand Down
43 changes: 22 additions & 21 deletions pkg/apis/internal.acorn.io/v1/zz_generated.deepcopy.go

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

0 comments on commit f19a9b3

Please sign in to comment.