-
Notifications
You must be signed in to change notification settings - Fork 3
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
DocDB instance user hook improvements #67
Conversation
…and change user's password if it is rernu due to some other config changing
… a key is missing) will have to lookup the mongo password dynamically in the job script
…created by gitops_suite
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.
I think we need to update the sync waves table with these new apps https://github.com/ibm-mas/gitops/tree/poc?tab=readme-ov-file#sync-waves
I think that documentation was written before we realised that sync waves are local to each application (which is why we thought that having separate sync wave ranges per chart was necessary). I've updated the docs to reflect this. Now that we no longer need to reserve ranges for each application (and it's really easy to see which wave each app belongs to by looking at the filenames), I don't think there's much to be gained by repeating that information in the table, so I've removed it. |
@tomklapiscak yeah I agree, it was just there to help show the picture of syncwaves, but the names of the files should do that. Could you update the new ibm-sync- apps to be |
For the benefit of anyone reading this, we agreed to not make (and test) this change now as we're planning to reorganise our application structure soon anyway. |
https://jsw.ibm.com/browse/MASCORE-2333
This PR fixes and tidies up the aws-docdb sync hooks that used to run in the ibm-sls chart:
It was necessary to add 2 new (very minimal) argo applications per MAS instance:
90-ibm-sync-resources
contains a namespace (mas-xxx-syncres
) and resources needed to run jobs (secrets/rbac/etc)91-ibm-sync-jobs
is where the jobs will actually be run. Because this is in later syncwave than90-ibm-sync-resources
, it means the resources will persist long enough for any PostDelete hooks in91-ibm-sync-jobs
to complete successfully.Testing performed
Verified the instance mongo secret was updated as expected
Verified that I could login as the newly-created user
Deleted the instance config
Made sure the PostDelete hook ran as expected
Verified the instance mongo secret was deleted as expected
Verified that I could no longer login as the newly-created user