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

Only install and refresh lxd once #73

Merged
merged 5 commits into from
Apr 18, 2024
Merged

Only install and refresh lxd once #73

merged 5 commits into from
Apr 18, 2024

Conversation

addyess
Copy link
Member

@addyess addyess commented Apr 11, 2024

These changes only refresh the lxd snap to a single channel, rather than allowing it to flip to channels during setup

In the event the workflow is called like this:

   provider: lxd
   channel: 5.19
   lxd-channel: <unset>

lxd-channel defaults to latest/stable

this causes the action to

snap refresh lxd --channel=latest/stable
...
snap refresh lxd --channel=5.19

Rather than going through jumps here, let's let the action install the correct one at the beginning.

@addyess
Copy link
Member Author

addyess commented Apr 11, 2024

addresses #72 as well by setting the default juju channel to 3/stable

Copy link
Member Author

@addyess addyess left a comment

Choose a reason for hiding this comment

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

Supplying commentary

.github/workflows/e2e.yaml Outdated Show resolved Hide resolved
default: "latest/stable"
default: "3/stable"
Copy link
Member Author

Choose a reason for hiding this comment

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

addresses the closing of the latest track of juju

dist/bootstrap/index.js Outdated Show resolved Hide resolved
Comment on lines -5733 to -5735
if ([null, ""].includes(channel) == false) {
yield snap(`refresh lxd --channel=${channel}`);
}
Copy link
Member Author

@addyess addyess Apr 11, 2024

Choose a reason for hiding this comment

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

This is no longer necessary with the above change

@addyess
Copy link
Member Author

addyess commented Apr 12, 2024

@ca-scribner this is ready for a secondary review if you're okay w/ it

Copy link
Member

@mateoflorido mateoflorido left a comment

Choose a reason for hiding this comment

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

LGTM!

@addyess addyess merged commit 9d94a54 into main Apr 18, 2024
20 of 21 checks passed
@addyess addyess deleted the akd/refresh-lxd-once branch April 18, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants