-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix recovery upgrades #445
Conversation
|
||
if [ -n "$UPGRADE_RECOVERY" ] && [ $UPGRADE_RECOVERY == true ] && [ -n "$RECOVERY_IMAGE" ]; then | ||
UPGRADE_IMAGE=$RECOVERY_IMAGE | ||
if [ -n "$UPGRADE_RECOVERY" ] && [ $UPGRADE_RECOVERY == true ] && [ -n "$RECOVERY_IMAGE" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPGRADE_RECOVERY was not set here since it gets applied in from the command line parsing which used to happen after this method in former implementation. Hence the recovery image from /etc/cos-upgrade-image
was never applied and it was defaulting to system/cos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
85d6136
to
45ad3ca
Compare
This commit fixes a bug related environment variables setting for cos-upgrade command. `cos-upgrade --recovery` was not using the recovery/cos image for upgrades since at the time the upgrade image was evaluated and decided the `RECOVERY_UPGRADE` variable was not set yet. Signed-off-by: David Cassany <[email protected]>
45ad3ca
to
d361167
Compare
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.3-0.20220401172941-5ff8fce1fcc6 to 1.6.18. - [Release notes](https://github.com/containerd/containerd/releases) - [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md) - [Commits](https://github.com/containerd/containerd/commits/v1.6.18) --- updated-dependencies: - dependency-name: github.com/containerd/containerd dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit fixes a bug related environment variables setting for
cos-upgrade command.
cos-upgrade --recovery
was not usingthe recovery/cos image for upgrades since at the time the upgrade image
was evaluated and decided the
RECOVERY_UPGRADE
variable was not setyet.
Signed-off-by: David Cassany [email protected]