Added a script to make a user ADMIN on the KRE mongodb database
Description
The script uses kubectl to get the mongodb admin password and executes the mongo cli on a container to update the user with the email address passed as argument if it exists, printing the updated data if succeeds.
Motivation and Context
I was going to do the change manually and thought that with this command I don't need to remember it anymore.
The command executes the code on a container to simplify things (no need to use port forwarding nor installing the mongo cli locally).
I haven't updated the documentation yet, if the addition is OK I guess it has to be documented somewhere (i.e. probably this section of the konstellation-infrastructure/README.md should be changed).
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Other changes (ci configuration, documentation or any other kind of changes)
Checklist:
[ ] I have created tests for my code changes, and the tests are passing.
[ ] I have executed the pre-commit hooks locally.
[x] My change requires a change to the documentation (create a new issue if the documentation has not been updated).
Added a script to make a user
ADMIN
on the KREmongodb
databaseDescription
The script uses
kubectl
to get themongodb
admin password and executes themongo
cli on a container to update the user with theemail
address passed as argument if it exists, printing the updated data if succeeds.Motivation and Context
I was going to do the change manually and thought that with this command I don't need to remember it anymore.
The command executes the code on a container to simplify things (no need to use port forwarding nor installing the
mongo
cli locally).I haven't updated the documentation yet, if the addition is OK I guess it has to be documented somewhere (i.e. probably this section of the
konstellation-infrastructure/README.md
should be changed).Types of changes
Checklist: