This is an automated email from the ASF dual-hosted git repository.
ashishtiwari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new ce5a37a3 fix: use force=true to hard delete the apisix resource (#2210)
ce5a37a3 is described below
commit ce5a37a3910bf607d90d9619391a650c85e3e3c5
Author: Ashish Tiwari <[email protected]>
AuthorDate: Fri Apr 12 14:16:44 2024 +0530
fix: use force=true to hard delete the apisix resource (#2210)
Signed-off-by: Ashish Tiwari <[email protected]>
---
pkg/apisix/cluster.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkg/apisix/cluster.go b/pkg/apisix/cluster.go
index 969fb2df..e7e74cca 100644
--- a/pkg/apisix/cluster.go
+++ b/pkg/apisix/cluster.go
@@ -849,6 +849,7 @@ func (c *cluster) updateResource(ctx context.Context, url,
resource string, body
}
func (c *cluster) deleteResource(ctx context.Context, url, resource string)
error {
+ url = url + "?force=true"
log.Debugw("deleting resource in cluster",
zap.String("cluster_name", c.name),
zap.String("name", resource),