onepanel icon indicating copy to clipboard operation
onepanel copied to clipboard

Auto create onepanel database for core - as an init container.

Open Vafilor opened this issue 4 years ago • 2 comments

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

  1. Database might already exist.

  2. 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 the params.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.

Vafilor avatar Aug 12 '20 22:08 Vafilor

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.

issue-label-bot[bot] avatar Aug 12 '20 22:08 issue-label-bot[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.

rushtehrani avatar Oct 27 '20 18:10 rushtehrani