Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Add Pathfinder Assessments migration script #269

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

aufi
Copy link
Member

@aufi aufi commented Oct 18, 2023

Since Pathfinder component is being replaced by Konveyor Hub API, already existing Assessments need to be migrated. Adding a script based on Hub's CLI tool https://github.com/konveyor/tackle2-hub/tree/main/hack/tool that connects to running Pathfinder and migrates Assessments to running Hub API v0.3.

This script is expected to be executed by operator during upgrade Konveyor 0.2->0.3.

Example usage: (only auth token argument is optional, both urls are required)

$ ./migrate-pathfinder-assessments --pathfinder-url http://pathfinder.svc --hub-base-url http://hub.svc:8080 --token ""

Related to konveyor/tackle2-hub#489 and konveyor/tackle2-hub#507

Since Pathfinder component is being replaced by Konveyor Hub API,
already existing Assessments need to be migrated. Adding a script based
on Hub's CLI tool [1] that migrates Pathfinder assessments to Hub.

This script is expected to be executed by operator during upgrade
Konveyor 0.2->0.3.

Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi aufi changed the title Add Pathfinder Assessments migration script 🌱 Add Pathfinder Assessments migration script Oct 18, 2023
@aufi aufi requested a review from jmontleon October 18, 2023 12:58
Copy link
Member

@jmontleon jmontleon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@aufi aufi marked this pull request as ready for review October 19, 2023 12:04
@aufi aufi closed this Oct 19, 2023
@aufi aufi reopened this Oct 19, 2023
Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi
Copy link
Member Author

aufi commented Oct 19, 2023

@jmontleon Thanks for ack, I'm going to merge the upgrade script to operator. At some point we might add the whole tackle CLI tool here, but this should be enough for assessments migration (and doesn't bring any new dependencies like the full tool version).

@aufi aufi merged commit c700f95 into konveyor:main Oct 19, 2023
5 checks passed
@jmontleon
Copy link
Member

Thank you! I'll work on a PR to detect Pathfinder, run the Migration, and take Pathfinder down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants