Supported upgrade k8s to v1.32 (#2514)

Signed-off-by: pixiake <guofeng@yunify.com>
This commit is contained in:
pixiake 2025-03-26 10:24:05 +08:00 committed by GitHub
parent c33f87ce2e
commit 414231fe6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 7 deletions

View File

@ -13,21 +13,22 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: 1.19
id: go
- name: install dependiencies
run: |
sudo apt update
sudo apt install skopeo -y
pip install natsort
wget https://attack-on-titan.gd2.qingstor.com/qsctl/v2.4.3/qsctl_v2.4.3_linux_amd64.tar.gz
tar -zxvf qsctl_v2.4.3_linux_amd64.tar.gz
mv qsctl_v2.4.3_linux_amd64 /usr/local/bin/qsctl
rm -rf qsctl_v2.4.3_linux_amd64.tar.gz
VERSION="1.2.2"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
sudo mv oras-install/oras /usr/local/bin/
rm -rf oras_${VERSION}_*.tar.gz oras-install/
- name: update components.json
id: get_new_version

View File

@ -41,6 +41,7 @@ const (
V129
V130
V131
V132
)
var VersionList = []Version{
@ -57,6 +58,7 @@ var VersionList = []Version{
V129,
V130,
V131,
V132,
}
func (v Version) String() string {
@ -87,6 +89,8 @@ func (v Version) String() string {
return "v1.30"
case V131:
return "v1.31"
case V132:
return "v1.32"
default:
return "invalid option"
}