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

Pin snap revision for amd64 #99

Merged
merged 3 commits into from
May 6, 2024
Merged

Pin snap revision for amd64 #99

merged 3 commits into from
May 6, 2024

Conversation

addyess
Copy link
Contributor

@addyess addyess commented May 6, 2024

Summary

Pins the snap revision rather than using a snap channel

Changes

Doing so, I discovered an issue with the logic within the snap library. Every time you call snap.ensure it will refresh the snap, even if the snap revisions match. This caused some of the services of k8s to be stopped, and never restarted.

By checking the current revision against the target snap revision, we can prevent the charm from calling snap refresh over and over again

@addyess addyess requested a review from a team as a code owner May 6, 2024 14:27
Copy link
Contributor

@bschimke95 bschimke95 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 force-pushed the KU-690/pin-amd64-snap branch from 16df892 to 2155f18 Compare May 6, 2024 19:39
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.

LGTM2

@addyess addyess merged commit fa14e45 into release-1.30 May 6, 2024
34 checks passed
@addyess addyess deleted the KU-690/pin-amd64-snap branch May 6, 2024 21:55
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.

3 participants