-
Notifications
You must be signed in to change notification settings - Fork 100
CLOUDP-267957: Deployment independent resource #1773
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
Conversation
Converted to draft, as there are changes going before this one that will require heavy rebasing. |
94cc6f7
to
1c8bdff
Compare
29948d6
to
f229dbc
Compare
|
||
func (r *AtlasDeploymentReconciler) getProjectDatabaseUsers(ctx context.Context, projectID string) ([]*akov2.AtlasDatabaseUser, error) { | ||
databaseUsers := &akov2.AtlasDatabaseUserList{} | ||
err := r.Client.List(ctx, databaseUsers, &client.ListOptions{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without going through all users and filtering them manually, the deployment would not create the secrets for all the users under their project. Basically, independent deployment would update independent users, linked would update only linked. In order to keep everything in sync we have to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't understand. The indexers are being updated every time a DB user resource is observed. What loss of information would we have if using a cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
All Submissions:
closes #XXXX
in your comment to auto-close the issue that your PR fixes (if there is one).