Skip to content

Conversation

@webern
Copy link
Contributor

@webern webern commented May 1, 2020

Issue number:

Supports #905 and #91

Description of changes:

Both migrator and updog will need to determine what migrations to use by parsing the manifest. Both will also need to load the manifest from a tough::Repository.

As a warm-up for signed migrations, this PR moves such logic from updog to update_metadata. update_metadata will be used by both migrator and updog so that they can share such code. Also, to do this, the tiny dependency update_metadata had on migrator has been inverted.

Testing done:

cargo make, cargo test, and an upgrade/downgrade test.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@webern webern requested review from sam-aws and tjkirch May 1, 2020 01:06
Copy link
Contributor

@sam-aws sam-aws left a comment

Choose a reason for hiding this comment

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

🐶

Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

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

🖌️

@webern webern merged commit 9cfc83b into bottlerocket-os:develop May 7, 2020
@webern webern deleted the pr/updog-move-migration-path-code branch January 13, 2021 19:42
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.

4 participants