-
Notifications
You must be signed in to change notification settings - Fork 6
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
[DB] Fix builtin DB init script. Document the DB existingSecret params #51
Conversation
In case of Builtin DBs: Init script was giving ownership of all DBs to georchestra user, no using the config params for geodata and datafeeder DBs. Which were nevertheless used by the geodata and datafeeder connection secrets. So for instance datafeeder was trying to connect with `datafeeder` user, but it had not been created. This way, the init script actually creates the users and gives them ownership on their respective DB Documentation: clarify the usage of the existingSecret params
@edevosc2c @jeanmi151 would you have a minute to review this one please ? |
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.
looks good to me, did you test it with other password than default one ?
It was 2 weeks ago, so I don't remember (but suppose so). Checked it right now, seems fine |
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 wish there was a better way to do it like this, as .Release.Name
is not a recommended value for accessing an external resource created by the parent chart.
But I'm ok with the change because for now there is no other choice that comes to my mind and this database provisioning is not targeted towards advanced setups so it will work fine on simple setups.
Init Script:
Fix [DB] init configmap's name does not match the name in Values.yaml #48:
name of init script should match the one provided in values.yaml
In case of Builtin DBs:
Init script was giving ownership of all DBs to georchestra user, no using the config params for geodata and datafeeder DBs. Which were nevertheless used by the geodata and datafeeder connection secrets. So for instance datafeeder was trying to connect with
datafeeder
user, but it had not been created.This way, the init script actually creates the users and gives them ownership on their respective DB
Documentation:
clarify the usage of the existingSecret params