Skip to content

Commit

Permalink
fix: delete app not delete route (#2107)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkaa authored Dec 18, 2024
1 parent c769dc9 commit e3fae94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controller/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ func (t *TenantStruct) DeleteSingleServiceInfo(w http.ResponseWriter, r *http.Re
service := r.Context().Value(ctxutil.ContextKey("service")).(*dbmodel.TenantServices)

err := k8s.Default().ApiSixClient.ApisixV2().ApisixRoutes(tenant.Namespace).DeleteCollection(r.Context(), v1.DeleteOptions{}, v1.ListOptions{
LabelSelector: service.ServiceAlias + "service_alias=",
LabelSelector: "component_sort=" + service.ServiceAlias,
})
if err != nil {
logrus.Errorf("delete apisix route error: %v", err)
Expand Down

0 comments on commit e3fae94

Please sign in to comment.