Skip to content

Commit

Permalink
fix: use force=true to hard delete the apisix resource (apache#2210)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Tiwari <[email protected]>
  • Loading branch information
Revolyssup committed Apr 12, 2024
1 parent 3856aff commit dcdbab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apisix/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit dcdbab1

Please sign in to comment.