Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
muicoder committed Sep 12, 2023
1 parent 3731597 commit 01087f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/ISSUE_TEMPLATE/autobuild-k8s.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
---
name: 构建Kubernetes集群镜像
about: 根据分支目录构建集群镜像并推送到镜像仓库
title: 'Auto-build】kubernetes'
title: 'AIO】kubernetes'
assignees: ''

---

```
Usage:
/kube [sealosVersion] # all images for containerd, cri-o, docker
/containerd [sealosVersion] # all images for containerd
/cri-o [sealosVersion] # all images for cri-o
/docker [sealosVersion] # all images for docker
/single_part4 [sealosVersion] # all images for containerd, cri-o, docker with part4
/single_containerd_part4 [sealosVersion] # all images for containerd with part4
/single_cri-o_part4 [sealosVersion] # all images for cri-o with part4
/single_docker_part4 [sealosVersion] # all images for docker with part4
/kube [sealosVersion] # all images for containerd, cri-o, docker and k3s(v1.24+)
Example:
/kube 4.1.5
/containerd 4.1.5
/cri-o 4.1.5
/docker 4.1.5
/single_part4 4.1.5
/single_containerd_part4 4.1.5
/single_cri-o_part4 4.1.5
/single_docker_part4 4.1.5
/kube 4.4.1 # Image tags such as v1.28.0
/kube 4.4.0-alpha1 # Image tags such as v1.28-latest
```
5 changes: 5 additions & 0 deletions .github/scripts/kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ cp -a "$KUBE_TYPE"/* "$ROOT"
pushd "$ROOT"
mkdir -p bin cri opt images/shim

if [[ "${SEALOS_XYZ//./}" -le 433 ]] && [[ $KUBE_TYPE == k3s ]]; then
echo "INFO::skip $KUBE(build for k3s) when $SEALOS(sealos<=4.3.3)"
exit
fi

MOUNT_CRI=$(sudo buildah mount "$(sudo buildah from "$IMAGE_CACHE_NAME:cri-$ARCH")")
# Check support for kube-v1.26+
if [[ "${KUBE_XY//./}" -ge 126 ]] && [[ "${SEALOS_XYZ//./}" -le 413 ]] && [[ -z "$sealosPatch" ]]; then
Expand Down

0 comments on commit 01087f8

Please sign in to comment.