Skip to content

Commit

Permalink
fix: update apisix upstream failure
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <101104760 [email protected]>
  • Loading branch information
ZhangSetSail committed Oct 17, 2024
1 parent 468e81e commit f715f71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/component-mgr/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 338,13 @@ func (r *RbdcomponentMgr) updateRuntimeObject(old, new client.Object) client.Obj
return n
}

if n, ok := new.(*v2.ApisixUpstream); ok {
r.log.V(6).Info("copy necessary fields from old ApisixRoute before updating")
o := old.(*v2.ApisixUpstream)
n.ResourceVersion = o.ResourceVersion
return n
}

if n, ok := new.(*v2.ApisixTls); ok {
r.log.V(6).Info("copy necessary fields from old ApisixTls before updating")
o := old.(*v2.ApisixTls)
Expand Down

0 comments on commit f715f71

Please sign in to comment.