Skip to content

Commit

Permalink
Merge pull request #2102 from pixiake/dependency
Browse files Browse the repository at this point in the history
update dependency binaries
  • Loading branch information
ks-ci-bot authored Jan 22, 2024
2 parents 208b6d7 + acc4d0b commit e0c9de9
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 19 deletions.
10 changes: 5 additions & 5 deletions cmd/kk/apis/kubekey/v1alpha2/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ const (
DefaultEtcdVersion = "v3.5.6"
DefaultEtcdPort = "2379"
DefaultDockerVersion = "24.0.6"
DefaultContainerdVersion = "1.7.8"
DefaultRuncVersion = "v1.1.10"
DefaultCrictlVersion = "v1.24.0"
DefaultKubeVersion = "v1.23.10"
DefaultContainerdVersion = "1.7.12"
DefaultRuncVersion = "v1.1.11"
DefaultCrictlVersion = "v1.29.0"
DefaultKubeVersion = "v1.23.15"
DefaultCalicoVersion = "v3.26.1"
DefaultFlannelVersion = "v0.21.3"
DefaultFlannelCniPluginVersion = "v1.1.2"
Expand All @@ -54,7 +54,7 @@ const (
DefaulthybridnetVersion = "v0.8.6"
DefaultKubeovnVersion = "v1.10.6"
DefalutMultusVersion = "v3.8"
DefaultHelmVersion = "v3.9.0"
DefaultHelmVersion = "v3.13.3"
DefaultDockerComposeVersion = "v2.2.2"
DefaultRegistryVersion = "2"
DefaultHarborVersion = "v2.5.3"
Expand Down
2 changes: 2 additions & 0 deletions cmd/kk/pkg/artifact/templates/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ spec:
- type: {{ $v.Type }}
version: {{ $v.Version }}
{{- end}}
calicoctl:
version: {{ .Options.Components.Calicoctl.Version }}
crictl:
version: {{ .Options.Components.Crictl.Version }}
##
Expand Down
2 changes: 2 additions & 0 deletions cmd/kk/pkg/images/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ func (c *CopyImagesToRegistry) Execute(runtime connector.Runtime) error {
for ; retry < maxRetry; retry++ {
if err := o.Copy(); err == nil {
break
} else {
fmt.Println(errors.WithStack(err))
}
}
if retry >= maxRetry {
Expand Down
18 changes: 13 additions & 5 deletions hack/sync-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ if [ $KUBERNETES_VERSION ]; then

qsctl cp binaries/kube/$KUBERNETES_VERSION/$arch/$binary \
qs://kubernetes-release/release/$KUBERNETES_VERSION/bin/linux/$arch/$binary \
-c qsctl-config.yaml
-c qsctl-config.yaml -f
done
done

chmod +x binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list | xargs -I {} skopeo sync --src docker --dest docker {} docker.io/$DOCKERHUB_NAMESPACE/${image##} --all
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list | xargs -I {} skopeo sync --src docker --dest docker {} registry.cn-beijing.aliyuncs.com/$ALIYUNCS_NAMESPACE/${image##} --all
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list --kubernetes-version $KUBERNETES_VERSION | xargs -I {} skopeo sync --src docker --dest docker {} docker.io/$DOCKERHUB_NAMESPACE/${image##} --all
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list --kubernetes-version $KUBERNETES_VERSION | xargs -I {} skopeo sync --src docker --dest docker {} registry.cn-beijing.aliyuncs.com/$ALIYUNCS_NAMESPACE/${image##} --all

rm -rf binaries
fi
Expand All @@ -117,6 +117,8 @@ if [ $HELM_VERSION ]; then

tar -zxf binaries/helm/$HELM_VERSION/$arch/helm-$HELM_VERSION-linux-$arch.tar.gz -C binaries/helm/$HELM_VERSION/$arch

sha256sum binaries/helm/$HELM_VERSION/$arch/linux-$arch/helm

qsctl cp $KUBERNETES_VERSION/$arch/linux-$arch/helm \
qs://kubernetes-helm/linux-$arch/$HELM_VERSION/helm \
-c qsctl-config.yaml
Expand Down Expand Up @@ -193,6 +195,8 @@ if [ $CRICTL_VERSION ]; then
mkdir -p binaries/crictl/$CRICTL_VERSION/$arch
echo "Synchronizing crictl-$arch"

sha256sum binaries/crictl/$CRICTL_VERSION/$arch/crictl-$CRICTL_VERSION-linux-$arch.tar.gz

curl -L -o binaries/crictl/$CRICTL_VERSION/$arch/crictl-$CRICTL_VERSION-linux-$arch.tar.gz \
https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-$CRICTL_VERSION-linux-$arch.tar.gz

Expand Down Expand Up @@ -232,11 +236,13 @@ if [ $CONTAINERD_VERSION ]; then
mkdir -p binaries/containerd/$CONTAINERD_VERSION/$arch
echo "Synchronizing containerd-$arch"

sha256sum binaries/containerd/$CONTAINERD_VERSION/$arch/containerd-$CONTAINERD_VERSION-linux-$arch.tar.gz

curl -L -o binaries/containerd/$CONTAINERD_VERSION/$arch/containerd-$CONTAINERD_VERSION-linux-$arch.tar.gz \
https://github.com/containerd/containerd/releases/download/v$CONTAINERD_VERSION/containerd-$CONTAINERD_VERSION-linux-$arch.tar.gz

qsctl cp binaries/containerd/$CONTAINERD_VERSION/$arch/containerd-$CONTAINERD_VERSION-linux-$arch.tar.gz \
qs://kubernetes-releas/containerd/containerd/releases/download/v$CONTAINERD_VERSION/containerd-$CONTAINERD_VERSION-linux-$arch.tar.gz \
qs://kubernetes-release/containerd/containerd/releases/download/v$CONTAINERD_VERSION/containerd-$CONTAINERD_VERSION-linux-$arch.tar.gz \
-c qsctl-config.yaml
done

Expand All @@ -250,6 +256,8 @@ if [ $RUNC_VERSION ]; then
mkdir -p binaries/runc/$RUNC_VERSION/$arch
echo "Synchronizing runc-$arch"

sha256sum binaries/runc/$RUNC_VERSION/$arch/runc.$arch

curl -L -o binaries/runc/$RUNC_VERSION/$arch/runc.$arch \
https://github.com/opencontainers/runc/releases/download/$RUNC_VERSION/runc.$arch

Expand All @@ -262,7 +270,7 @@ if [ $RUNC_VERSION ]; then
fi

# Sync docker-compose Binary
if [ $RUNC_VERSION ]; then
if [ $COMPOSE_VERSION ]; then
for arch in ${ARCHS[@]}
do
mkdir -p binaries/compose/$COMPOSE_VERSION/$arch
Expand Down
26 changes: 17 additions & 9 deletions version/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,8 @@
"v3.10.3": "cc5223b23fd2ccdf4c80eda0acac7a6a5c8cdb81c5b538240e85fe97aa5bc3fb",
"v3.11.0": "930918464763e66f9f99bed076357abc4bc56b040c053fce9884314964ca0fcc",
"v3.11.1": "f5366ce6d2118b0ef7134db08273a058649d88a27deb4b9d3cc0881bb55119a8",
"v3.13.1": "77a68582fac7290df476e1e698f7dd70bb496bf1d475e123664e921f4478c567"
"v3.13.1": "77a68582fac7290df476e1e698f7dd70bb496bf1d475e123664e921f4478c567",
"v3.13.3": "a8993938dc1d3073954484bf014938002fa97dcc9230faa685f12b87b4305f6b"
},
"arm64": {
"v3.2.1": "20bb9d66e74f618cd104ca07e4525a8f2f760dd6d5611f7d59b6ac574624d672",
Expand Down Expand Up @@ -912,7 +913,8 @@
"v3.10.3": "2b75e7112367ca237cd39408353dcfef9b81b1b5cf78e4826bdccb061dbb8dbd",
"v3.11.0": "f8ab55641ca83ce6d2ab7c048ed86794c9dc15f7e197fb7c6e7c2ec3c2d76c12",
"v3.11.1": "2de8125127d555a006290f7dcd57235b1d83444a020b3bf7248c77cd6d3a629b",
"v3.13.1": "aa8b2996fa70837083286fb3a33a153105ff11067ae2424b1ae7cf250b0dc353"
"v3.13.1": "aa8b2996fa70837083286fb3a33a153105ff11067ae2424b1ae7cf250b0dc353",
"v3.13.3": "1c6d57e6c6785030221837f67e512b2c033e7bd2bc9f8fe43ea3a06c0f66bf8d"
}
},
"kubecni": {
Expand Down Expand Up @@ -1054,7 +1056,8 @@
"1.7.5": "33609ae2d5838bc5798306a1ac30d7f2c6a8cff785ca6253d2be8a8b3ccbab25",
"1.7.6": "58408cfa025003e671b0af72183b963363d519543d0d0ba186037e9c57489ffe",
"1.7.7": "371de359d6102c51f6ee2361d08297948d134ce7379e01cb965ceeffa4365fba",
"1.7.8": "5f1d017a5a7359514d6187d6656e88fb2a592d107e6298db7963dbddb9a111d9"
"1.7.8": "5f1d017a5a7359514d6187d6656e88fb2a592d107e6298db7963dbddb9a111d9",
"1.7.12": "6a24d8b996533fa1b0d7348fe9813a78cd01fa16cff865a961ad0d556f5cd665"
},
"arm64": {
"1.6.2": "a4b24b3c38a67852daa80f03ec2bc94e31a0f4393477cd7dc1c1a7c2d3eb2a95",
Expand Down Expand Up @@ -1088,7 +1091,8 @@
"1.7.5": "98fc6990820d52d45b56ea2cda808157d4e61bb30ded96887634644c03025fa9",
"1.7.6": "d844a1c8b993e7e9647f73b9814567004dce1287c0529ce55c50519490eafcce",
"1.7.7": "0a104f487193665d2681fcb5ed83f2baa5f97849fe2661188da835c9d4eaf9e3",
"1.7.8": "3fc551e8f51150804d80cc1958a271bd2252b6334f0355244d0faa5da7fa55d1"
"1.7.8": "3fc551e8f51150804d80cc1958a271bd2252b6334f0355244d0faa5da7fa55d1",
"1.7.12": "8a1b35a521d071a8828f63fe007a51e5b7ac863a1195f5dee32543b1a9d5f2b6"
}
},
"runc": {
Expand All @@ -1098,15 +1102,17 @@
"v1.1.3": "6e8b24be90fffce6b025d254846da9d2ca6d65125f9139b6354bab0272253d01",
"v1.1.4": "db772be63147a4e747b4fe286c7c16a2edc4a8458bd3092ea46aaee77750e8ce",
"v1.1.9": "b9bfdd4cb27cddbb6172a442df165a80bfc0538a676fbca1a6a6c8f4c6933b43",
"v1.1.10": "81f73a59be3d122ab484d7dfe9ddc81030f595cc59968f61c113a9a38a2c113a"
"v1.1.10": "81f73a59be3d122ab484d7dfe9ddc81030f595cc59968f61c113a9a38a2c113a",
"v1.1.11": "77ae134de014613c44d25e6310a57a219a7a91155cd47d069a0f22a2cad5caea"
},
"arm64": {
"v1.1.1": "20c436a736547309371c7ac2a335f5fe5a42b450120e497d09c8dc3902c28444",
"v1.1.2": "6ebd968d46d00a3886e9a0cae2e0a7b399e110cf5d7b26e63ce23c1d81ea10ef",
"v1.1.3": "00c9ad161a77a01d9dcbd25b1d76fa9822e57d8e4abf26ba8907c98f6bcfcd0f",
"v1.1.4": "dbb71e737eaef454a406ce21fd021bd8f1b35afb7635016745992bbd7c17a223",
"v1.1.9": "b43e9f561e85906f469eef5a7b7992fc586f750f44a0e011da4467e7008c33a0",
"v1.1.10": "4830afd426bdeacbdf9cb8729524aa2ed51790b8c4b28786995925593708f1c8"
"v1.1.10": "4830afd426bdeacbdf9cb8729524aa2ed51790b8c4b28786995925593708f1c8",
"v1.1.11": "9f1ee53f06b78cc4a115ca6ae4eec10567999539ce828a22c5351edba043ed12"
}
},
"crictl": {
Expand All @@ -1118,7 +1124,8 @@
"v1.24.2": "53432dd365f7bf045c1e65ee2e44c74df6a0a8f0a798f640a945c8e07ad8682e",
"v1.25.0": "86ab210c007f521ac4cdcbcf0ae3fb2e10923e65f16de83e0e1db191a07f0235",
"v1.26.0": "cda5e2143bf19f6b548110ffba0fe3565e03e8743fadd625fee3d62fc4134eed",
"v1.28.0": "8dc78774f7cbeaf787994d386eec663f0a3cf24de1ea4893598096cb39ef2508"
"v1.28.0": "8dc78774f7cbeaf787994d386eec663f0a3cf24de1ea4893598096cb39ef2508",
"v1.29.0": "d16a1ffb3938f5a19d5c8f45d363bd091ef89c0bc4d44ad16b933eede32fdcbb"
},
"arm64": {
"v1.22.0": "a713c37fade0d96a989bc15ebe906e08ef5c8fe5e107c2161b0665e9963b770e",
Expand All @@ -1128,7 +1135,8 @@
"v1.24.2": "c1410b15d5009287c94eabcc63b14dba68726771fa87fef743867df2eea0a6d5",
"v1.25.0": "651c939eca010bbf48cc3932516b194028af0893025f9e366127f5b50ad5c4f4",
"v1.26.0": "b632ca705a98edc8ad7806f4279feaff956ac83aa109bba8a85ed81e6b900599",
"v1.28.0": "06e9224e42bc5e23085751e93cccdac89f7930ba6f7a45b8f8fc70ef663c37c4"
"v1.28.0": "06e9224e42bc5e23085751e93cccdac89f7930ba6f7a45b8f8fc70ef663c37c4",
"v1.29.0": "0b615cfa00c331fb9c4524f3d4058a61cc487b33a3436d1269e7832cf283f925"
}
},
"registry": {
Expand Down Expand Up @@ -1240,4 +1248,4 @@
"v3.26.1": "bba2fbdd6d2998bca144ae12c2675d65c4fbf51c0944d69b1b2f20e08cd14c22"
}
}
}
}

0 comments on commit e0c9de9

Please sign in to comment.