pulp / pulp/pulp-operator

Create a manual database migration trigger

Open
#1,295 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Go
Stars
88
Forks
66
Avg merge
53m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how the operator creates and triggers the Pulp migration Job, then inspect the documented resource configuration and the external PostgreSQL transition described here. The work is complete when users can reliably trigger migrations after changing database configuration, either through a triggerNonce field or a documented kubectl procedure.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, postgresql
Domain
databases, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.