pulp / pulp-operator

Kubernetes Operator for Pulp 3. Under active development.
https://docs.pulpproject.org/pulp_operator/
GNU General Public License v2.0
67 stars 50 forks source link

Create a manual database migration trigger #1295

Open AndersBennedsgaard opened 4 months ago

AndersBennedsgaard commented 4 months ago

Is your feature request related to a problem? Please describe.

I changed the Pulp resource to use an external PostgreSQL database from the operator-managed instance, which didn't trigger the migration step, so all Pulp services complained about missing migrations which never happened.

Describe the solution you'd like

Create a way to manually trigger the migration job. This could be adding a .spec.migration_job.triggerNonce field, which accepts any random string and runs the job whenever it changes. As an alternative, the migration Job spec could be added to the documentation such that you could manually trigger it with kubectl or similar

mikedep333 commented 4 months ago

Hi @AndersBennedsgaard

We agree this is an important feature request. We're not sure how exactly to trigger the manual migration, but we see the need. Unfortunately, we cannot commit to anytime for fixing it.

-Mike