Skip to content

Commit

Permalink
fix: add missing deepcopy func (#524)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Sep 27, 2024
1 parent 2389f3a commit e1fdbfa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/apis/policy/v1alpha1/assertion_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ func (a *AssertionTree) UnmarshalJSON(data []byte) error {
func (in *AssertionTree) DeepCopyInto(out *AssertionTree) {
out._tree = deepCopy(in._tree)
}

func (in *AssertionTree) DeepCopy() *AssertionTree {
if in == nil {
return nil
}
out := new(AssertionTree)
in.DeepCopyInto(out)
return out
}

0 comments on commit e1fdbfa

Please sign in to comment.