Skip to content

Commit f5409a5

Browse files
committed
BUG/MINOR: fix panic in Global CR DeppCopy for v1
1 parent c01d3b3 commit f5409a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crs/api/ingress/v1/global.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func (in *GlobalSpec) DeepCopyInto(out *GlobalSpec) {
5252
out.LogTargets = make([]*models.LogTarget, len(in.LogTargets))
5353
for i, v := range in.LogTargets {
5454
b, _ := v.MarshalBinary()
55+
out.LogTargets[i] = &models.LogTarget{}
5556
_ = out.LogTargets[i].UnmarshalBinary(b)
5657
}
5758
}

0 commit comments

Comments
 (0)