Skip to content

CLOUDP-299865: Correctly Cleanup Connection Secrets #2141

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

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

roothorp
Copy link
Collaborator

@roothorp roothorp commented Feb 20, 2025

We currently discover 'orphaned' connection secrets by listing deployments. We don't list Flex deployments correctly, so connection secrets associated with Flex clusters will be 'cleaned up' (deleted). This only happens on subsequent reconciles (updates), not on creation.

This PR makes sure we correctly list Flex clusters, and tests that connection secrets are appropriately cleaned up.

Fixes #2138

All Submissions:

  • Have you signed our CLA?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if there is one).
  • Update docs/release-notes/release-notes-template.md if your changes should be included in the release notes for the next release.

@roothorp roothorp force-pushed the cloudp-299865-deleting-conn-secrets branch from ea123d1 to fef6e05 Compare February 20, 2025 10:14
@s-urbaniak s-urbaniak merged commit fd9da9f into main Feb 20, 2025
61 checks passed
@s-urbaniak s-urbaniak deleted the cloudp-299865-deleting-conn-secrets branch February 20, 2025 20:09
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.

New mongodb version returns bug of deleting ALL atlasdatabaseuser connection secrets in the same namespace
3 participants