Skip to content

Conversation

@vdice
Copy link
Collaborator

@vdice vdice commented Oct 24, 2024

Describe your changes

Adds distro detection for parity with the current installer script used in SpinKube today (see containerd-shim-spin's installer script)

Incorporates changes from #84 and adds the following additional commits:

  • adds setup functions for rke2/k3s
  • adds k0s support
  • misc refactor (simplified distro.Restarter)
  • adds tests/testdata for DetectDistro and WithSetup

Notes

I used Lima VMs to test the following distros (links to their lima.yaml configs):

For all of these, I used the quick start/easy mode for installation.

Untested and looking for volunteers to help out: GKE, EKS, DO K8s

Issue ticket number and link

#65

Supersedes #84

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.
  • I tested the changes with the following distributions:
    • Kind
    • K3s
    • K0s
    • MiniKube
    • MicroK8s
    • Rancher RKE2
    • Azure AKS
    • GCP GKE (Ubuntu nodes)
    • AWS EKS (AmazonLinux2 nodes)
    • AWS EKS (Ubuntu nodes)
    • Digital Ocean Kubernetes

@vdice vdice requested review from phyrog and voigt October 24, 2024 23:23
@phyrog phyrog self-assigned this Oct 25, 2024
Copy link
Collaborator

@phyrog phyrog left a comment

Choose a reason for hiding this comment

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

Looks great @vdice, thanks for picking up the PR! Just some minor stuff to change.

@phyrog phyrog mentioned this pull request Oct 25, 2024
11 tasks
@vdice vdice force-pushed the autodetect-pr-84-updates branch from 5fe2448 to 6a35df1 Compare October 25, 2024 19:52
@vdice vdice requested a review from phyrog October 25, 2024 19:55
@vdice vdice force-pushed the autodetect-pr-84-updates branch 2 times, most recently from 84b34c3 to 33f96a6 Compare October 25, 2024 20:00
@vdice vdice force-pushed the autodetect-pr-84-updates branch from 33f96a6 to 0703753 Compare October 25, 2024 20:03
Copy link
Member

@voigt voigt left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you for picking that up! :)

@phyrog phyrog merged commit b050f13 into spinframework:main Oct 27, 2024
5 checks passed
@vdice vdice deleted the autodetect-pr-84-updates branch October 28, 2024 15:08
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