-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix VirtualRouter route deletion sequence (#768)
* Remove routes before the matching listener This addresses a few rough edges with updating a VirtualRouter. After this change, it is possible to update the listener protocol on the CRD in one step. It is also possible to remove the listener at the same time as the routes which use that listener. * Fix a nil panic error When running this against a test cluster, discovered that the logic must filter to only names with SDK routes before adding them to a deletion list. * Add unit test coverage Adds unit test coverage for the new functions. A possible nil pointer dereference is fixed, which could occur if port matching is not utilized. * Remove unneeded API calls The API call to describe the route is not needed, as the route ref contains all the information needed to delete routes.
- Loading branch information
Showing
3 changed files
with
521 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.