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

migrator: remove unsigned migration support #976

Merged
merged 1 commit into from
Jul 17, 2020
Merged

migrator: remove unsigned migration support #976

merged 1 commit into from
Jul 17, 2020

Conversation

webern
Copy link
Contributor

@webern webern commented Jul 8, 2020

This is a redo of #966 which was reverted in #971, the text below is the same as what appeared in #966.

Issue number:

Closes #972
Closes #954
Related to #961

Description of changes:

Removes support for unsigned datastore migrations. CAUTION: this code is incompatible with versions less than 0.4.x. See #961 regarding strategy for ensuring hosts do not try to upgrade or downgrade to an incompatible version of Bottlerocket.

Testing done:

Created a test migration that adds a setting "foo" with value "bar".
Ran an instance, upgraded to a higher version that included the test migration, downgrade back to original version. Along the way I verified that a pod could run, and that the migration actually ran (and affected the "foo" setting).

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.

@tjkirch tjkirch added this to the v0.5.0 milestone Jul 8, 2020
@webern
Copy link
Contributor Author

webern commented Jul 16, 2020

webern force-pushed the webern:remove-unsigned-migrations branch from 92d47fd to 39fafb9

Rebase with no conflicts.

Copy link
Contributor

@tjkirch tjkirch left a comment

Choose a reason for hiding this comment

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

I believe we're good to go for removing the compat code in 0.5.0.

@webern webern marked this pull request as ready for review July 16, 2020 22:52
@webern webern requested review from etungsten and bcressey July 16, 2020 22:52
@webern webern merged commit 164ade0 into bottlerocket-os:develop Jul 17, 2020
@webern webern deleted the remove-unsigned-migrations branch January 13, 2021 19:43
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.

Remove unsigned migration compatibility code Remove deprecated migration handling code
3 participants