pipelines icon indicating copy to clipboard operation
pipelines copied to clipboard

[feature] Adding an option to skip database creation/migration logic

Open lkaybob opened this issue 2 years ago • 4 comments

Feature Area

/area backend

What feature would you like to see?

Adding an environment variable option to allow skipping database migration logic, so that Pipelines backend applications run properly when db schema creation is handled by admin process (as ml-metadata allows).

What is the use case or pain point?

While KF Pipelines backend have database creation/migration logic included, it does not have an option to skip database migration. This makes application startup fails when DB user used by application does not have enough privilege to execute DDL statements.

Is there a workaround currently?

We've first created a SQL dump of database schema(mlpipeline, caches) of backend applications from freshly deployed Kubeflow cluster where we manage by ourselves, and executed the dump manually to production environment.

Since the applications still executes DDL statements regardless of existence of schemas, we have hard-forked the repository and disabled the DB migration logic by commenting out the relevant code so far.

(If possible, I would like to make a contribution of the feature.)


Love this idea? Give it a 👍.

lkaybob avatar Nov 26 '23 13:11 lkaybob

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 25 '24 07:02 github-actions[bot]

no stalebot, this is relevant.

rimolive avatar Feb 26 '24 21:02 rimolive

/assign @rimolive

rimolive avatar Mar 13 '24 10:03 rimolive

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 13 '24 07:05 github-actions[bot]

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

github-actions[bot] avatar Jun 04 '24 07:06 github-actions[bot]

/reopen /lifecycle frozen

rimolive avatar Jun 05 '24 12:06 rimolive

@rimolive: Reopened this issue.

In response to this:

/reopen /lifecycle frozen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

google-oss-prow[bot] avatar Jun 05 '24 12:06 google-oss-prow[bot]