Skip to content

[FEATURE] Run Version Migration Job on Upgrade #228

Open
@adambkaplan

Description

@adambkaplan

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem or use-case? Please describe.

In shipwright-io/build#1603, a version migration script was added to the install/upgrade instructions. This script launches a kubernetes Job that ensures all existing Shipwright Build objects use the v1beta1 API.

Describe the solution that you would like.

The operator should implement the script's logic within a controller. It should do the following:

  • (optional) Determine if this is a new installation, or an upgrade.
  • On upgrade (or always?), start the Job to initiate the migration
  • Reconcile and report status of the version migration Job.

Describe alternatives you have considered.

Keep as "manual instructions" when upgrading. This is not desired for an operator.

Anything else?

Question regarding the migration job - is this idempotent? Will it always succeed, even if there are no objects to update?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    • Status

      Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions