onepanel
onepanel copied to clipboard
Auto create onepanel database for core - as an init container.
Issue / Background
Right now, you have to manually create a Onepanel database yourself. This should be automatic.
Idea
Use an init container to create the database when onepanel-core starts.
Potential Issues
-
Database might already exist.
-
For postgres databases, we need to specify a default database that exists (unless there's a way to do it without a database existing?). This is usually
postgres
however, we will need a parameter for this in theparams.yaml
file in case it is different.
I can't think of a case where this would cause a backwards compatibility issue, but open to feedback.
Issue-Label Bot is automatically applying the label kind/enhancement
to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
One issue we can potentially run into is if the user changes the database name when they're first setting up, for example if they had the wrong name.