Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deletion of references #2213

Merged

Conversation

Revolyssup
Copy link
Contributor

@Revolyssup Revolyssup commented Apr 15, 2024

After adding the force=true flag in requests to apisix, we cant rely on apisix reference counting to not delete resources and will have to check it at ingress level before sending request to apisix.

Screenshot 2024-04-15 at 3 21 32 PM

How to test

  1. Create a route1 referencing a service
  2. Check that an upstream is created in APISIX.
  3. Create another route, route2 referencing the same service.
  4. Delete route1.
  5. Check APISIX to see that the upstream is not deleted.
  6. Delete route2
  7. Upstream is deleted.

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@Revolyssup Revolyssup requested a review from AlinsRan April 15, 2024 10:04
@Revolyssup Revolyssup merged commit aba75eb into apache:master Apr 16, 2024
79 checks passed
@Revolyssup Revolyssup deleted the revolyssup/fixdeletionofreferences branch April 16, 2024 06:53
@Revolyssup Revolyssup restored the revolyssup/fixdeletionofreferences branch April 16, 2024 06:56
Revolyssup added a commit to Revolyssup/apisix-ingress-controller that referenced this pull request Apr 16, 2024
Revolyssup added a commit that referenced this pull request Apr 16, 2024
* fix: deletion of references (#2213)

* chore: add fix commit in release note

Signed-off-by: Ashish Tiwari <[email protected]>

---------

Signed-off-by: Ashish Tiwari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants