cnrancher / hangar

Multi-platform container image command-line utility.
https://hangar.cnrancher.com
Apache License 2.0
12 stars 6 forks source link

[1.7][generate-list] Add generate Rancher supported k8s versions list support #33

Closed STARRY-S closed 4 months ago

STARRY-S commented 5 months ago

Issue

https://github.com/cnrancher/hangar/issues/26

Describe

  1. Update the generate-list command to add output a Rancher-supported k8s versions list support.
  2. Remove unused system-agent-installer-k3s and system-agent-installer-rke2 images in the generated image list file.
  3. Bug fixes and other improvements.

Testing

Manual Test

./hangar generate-list --rancher=v2.8.0

The output v2.8.0-versions.txt file:

K3s Versions:
v1.25.13+k3s1
v1.25.15+k3s2
v1.25.16+k3s4
v1.26.10+k3s2
v1.26.11+k3s2
v1.26.8+k3s1
v1.27.5+k3s1
v1.27.7+k3s2
v1.27.8+k3s2

RKE2 Versions:
v1.25.13+rke2r1
v1.25.15+rke2r2
v1.25.16+rke2r1
v1.26.10+rke2r2
v1.26.11+rke2r1
v1.26.8+rke2r1
v1.27.5+rke2r1
v1.27.7+rke2r2
v1.27.8+rke2r1

RKE Versions:
v1.25.16-rancher2-1
v1.26.11-rancher2-1
v1.27.8-rancher2-1