mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 20:59:30 +00:00
Upgrade containerd to v2.0.2
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
04ed6c0996
commit
124e46bccf
@@ -8,7 +8,7 @@ cd $(dirname $0)/..
|
||||
GO=${GO-go}
|
||||
|
||||
PKG="github.com/k3s-io/k3s"
|
||||
PKG_CONTAINERD="github.com/containerd/containerd"
|
||||
PKG_CONTAINERD="github.com/containerd/containerd/v2"
|
||||
PKG_CRICTL="sigs.k8s.io/cri-tools/pkg"
|
||||
PKG_K8S_BASE="k8s.io/component-base"
|
||||
PKG_K8S_CLIENT="k8s.io/client-go/pkg"
|
||||
|
||||
@@ -36,7 +36,7 @@ case ${OS} in
|
||||
;;
|
||||
esac
|
||||
|
||||
git clone --single-branch --branch=${VERSION_CONTAINERD} --depth=1 https://${PKG_CONTAINERD_K3S} ${CONTAINERD_DIR}
|
||||
git clone --single-branch --branch=${VERSION_CONTAINERD} --depth=1 https://${PKG_CONTAINERD_K3S/\/v*/} ${CONTAINERD_DIR}
|
||||
|
||||
for CHART_FILE in $(grep -rlF HelmChart manifests/ | xargs yq eval --no-doc .spec.chart | xargs -n1 basename); do
|
||||
CHART_NAME=$(echo $CHART_FILE | grep -oE '^(-*[a-z])+')
|
||||
|
||||
@@ -31,8 +31,8 @@ get-module-path(){
|
||||
go list -m -f '{{if .Replace}}{{.Replace.Path}}{{else}}{{.Path}}{{end}}' $1
|
||||
}
|
||||
|
||||
PKG_CONTAINERD_K3S=$(get-module-path github.com/containerd/containerd)
|
||||
VERSION_CONTAINERD=$(get-module-version github.com/containerd/containerd)
|
||||
PKG_CONTAINERD_K3S=$(get-module-path github.com/containerd/containerd/v2)
|
||||
VERSION_CONTAINERD=$(get-module-version github.com/containerd/containerd/v2)
|
||||
if [ -z "$VERSION_CONTAINERD" ]; then
|
||||
VERSION_CONTAINERD="v0.0.0"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user