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

Only delete ingress objects if stopped #1082

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Only delete ingress objects if stopped #1082

merged 2 commits into from
Dec 17, 2024

Conversation

ianstanton
Copy link
Contributor

@ianstanton ianstanton commented Dec 17, 2024

Wrap ingress deletion logic in condition check for cdb.spec.stop. Without this, ingress objects were deleted and re-created for all instances.

Signed-off-by: Ian Stanton <ian@tembo.io>
@ianstanton ianstanton marked this pull request as ready for review December 17, 2024 21:19
Signed-off-by: Ian Stanton <ian@tembo.io>
@@ -4369,19 +4369,19 @@ CREATE EVENT TRIGGER pgrst_watch
assert!(service_items.is_empty());
// should be no Services

// ingress must be gone
// There should be 1 IngressRoute left (metrics)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These assertions were checking for 0 IngressRoutes and 0 IngressRouteTCPs. They were being deleted and re-created before introducing this fix. We expect 1 of each to be present.

@ianstanton ianstanton merged commit e33bffc into main Dec 17, 2024
8 of 9 checks passed
@ianstanton ianstanton deleted the fix-ing-deletion branch December 17, 2024 22:43
nhudson added a commit that referenced this pull request Dec 17, 2024
* main:
  Only delete ingress objects if stopped (#1082)
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