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

Check if Microk8s is installed #785

Merged
merged 9 commits into from
Nov 14, 2024
Merged

Check if Microk8s is installed #785

merged 9 commits into from
Nov 14, 2024

Conversation

eaudetcobello
Copy link
Contributor

@eaudetcobello eaudetcobello commented Nov 8, 2024

Adds a check that uses the snapd API to let the user know microk8s must be uninstalled.

@eaudetcobello eaudetcobello requested a review from a team as a code owner November 8, 2024 22:25
@eaudetcobello eaudetcobello changed the title Add check if Microk8s is installed Check if Microk8s is installed Nov 8, 2024
@eaudetcobello eaudetcobello marked this pull request as draft November 8, 2024 22:37
@eaudetcobello eaudetcobello marked this pull request as ready for review November 11, 2024 16:30
Copy link
Contributor

@HomayoonAlimohammadi HomayoonAlimohammadi left a comment

Choose a reason for hiding this comment

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

Great work! Thanks @eaudetcobello! LGTM, just some minor comments and questions.

src/k8s/cmd/k8s/k8s_bootstrap.go Outdated Show resolved Hide resolved
src/k8s/pkg/client/snapd/snap_info.go Show resolved Hide resolved
Copy link
Member

@berkayoz berkayoz left a comment

Choose a reason for hiding this comment

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

LGTM, just to make sure we only get response code 200 if snap is installed right?

We should also mention this in our docs, we can do that in a separate PR/card.

@HomayoonAlimohammadi
Copy link
Contributor

Quick question: Do we also care if people have any other thing installed that binds to the ports we care about? E.g. maybe k3s or...?

@eaudetcobello
Copy link
Contributor Author

Quick question: Do we also care if people have any other thing installed that binds to the ports we care about? E.g. maybe k3s or...?

Definitely, we have a card for this.

Copy link
Contributor

@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.

LGTM. The queue of suggestions is full but merge when ready

@eaudetcobello eaudetcobello merged commit e1dd58e into main Nov 14, 2024
16 of 18 checks passed
@eaudetcobello eaudetcobello deleted the KU-2057/check-microk8s branch November 14, 2024 17:09
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