Skip to content

Commit

Permalink
BUG/MINOR: fix panic in Global CR DeppCopy for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurand0710 committed Dec 18, 2023
1 parent c01d3b3 commit f5409a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crs/api/ingress/v1/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (in *GlobalSpec) DeepCopyInto(out *GlobalSpec) {
out.LogTargets = make([]*models.LogTarget, len(in.LogTargets))
for i, v := range in.LogTargets {
b, _ := v.MarshalBinary()
out.LogTargets[i] = &models.LogTarget{}
_ = out.LogTargets[i].UnmarshalBinary(b)
}
}
Expand Down

0 comments on commit f5409a5

Please sign in to comment.