Skip to content

Commit 3b4e1be

Browse files
committed
chore(workflow): change k3s mirror
1 parent 5c5eddf commit 3b4e1be

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

_scripts/install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,15 @@ function configure_mirrors {
137137
configure_registries
138138
if [[ "${INSTALL_DRYCC_MIRROR}" == "cn" ]] ; then
139139
INSTALL_K3S_MIRROR="${INSTALL_DRYCC_MIRROR}"
140+
k3s_install_url="https://get-k3s.drycc.cc"
141+
K3S_RELEASE_URL=https://github.com/k3s-io/k3s/releases
140142
export INSTALL_K3S_MIRROR
141-
k3s_install_url="http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh"
142143
else
143144
k3s_install_url="https://get.k3s.io"
145+
K3S_RELEASE_URL=github.com/k3s-io/k3s/releases
144146
fi
147+
INSTALL_K3S_VERSION=$(curl -Ls "$K3S_RELEASE_URL" | grep /k3s-io/k3s/releases/tag/ | sed -E 's/.*\/k3s-io\/k3s\/releases\/tag\/(v[0-9\.]{1,}%2Bk3s[0-9])".*/\1/g' | head -1)
148+
export INSTALL_K3S_VERSION
145149
}
146150

147151
function install_k3s_server {
@@ -194,7 +198,7 @@ function install_metallb() {
194198
check_metallb
195199
echo -e "\\033[32m--->Start installing metallb...\\033[0m"
196200
helm install metallb drycc/metallb \
197-
--set frr.enabled=true \
201+
--set speaker.frr.enabled=true \
198202
--namespace metallb \
199203
--create-namespace \
200204
--wait

0 commit comments

Comments
 (0)