Skip to content

Commit bf971d9

Browse files
authored
Revert "feat(platform): support containerd as runtime (#1390)" (#1449)
This reverts commit 8d79f1c.
1 parent 1e8fde0 commit bf971d9

File tree

32 files changed

+401
-884
lines changed

32 files changed

+401
-884
lines changed

api/openapi/zz_generated.openapi.go

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/platform/types.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,6 @@ const (
227227
GPUVirtual GPUType = "Virtual"
228228
)
229229

230-
type ContainerRuntimeType = string
231-
232-
const (
233-
Containerd ContainerRuntimeType = "containerd"
234-
Docker ContainerRuntimeType = "docker"
235-
)
236-
237230
// ClusterPhase defines the phase of cluster constructor.
238231
type ClusterPhase string
239232

@@ -391,8 +384,6 @@ type ClusterFeature struct {
391384
// +optional
392385
EnableCilium bool
393386
// +optional
394-
ContainerRuntime ContainerRuntimeType
395-
// +optional
396387
IPv6DualStack bool
397388
// Upgrade control upgrade process.
398389
// +optional

api/platform/v1/generated.pb.go

Lines changed: 365 additions & 406 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/platform/v1/generated.proto

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/platform/v1/types.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,6 @@ const (
233233
GPUVirtual GPUType = "Virtual"
234234
)
235235

236-
type ContainerRuntimeType = string
237-
238-
const (
239-
Containerd ContainerRuntimeType = "containerd"
240-
Docker ContainerRuntimeType = "docker"
241-
)
242-
243236
// ClusterPhase defines the phase of cluster constructor.
244237
type ClusterPhase string
245238

@@ -398,8 +391,6 @@ type ClusterFeature struct {
398391
IPv6DualStack bool `json:"ipv6DualStack,omitempty" protobuf:"bytes,13,opt,name=ipv6DualStack"`
399392
// +optional
400393
EnableCilium bool `json:"enableCilium,omitempty" protobuf:"bytes,14,opt,name=enableCilium"`
401-
// +optional
402-
ContainerRuntime ContainerRuntimeType `json:"containerRuntime,omitempty" protobuf:"bytes,15,opt,name=containerRuntime"`
403394
// Upgrade control upgrade process.
404395
// +optional
405396
Upgrade Upgrade `json:"upgrade,omitempty" protobuf:"bytes,22,opt,name=upgrade"`

api/platform/v1/zz_generated.conversion.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/docker/tools/provider-res/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ COPY linux-arm64/conntrack-tools-*.tar.gz res/linux-arm64/
2929
COPY linux-amd64/docker-*.tar.gz res/linux-amd64/
3030
COPY linux-arm64/docker-*.tar.gz res/linux-arm64/
3131

32-
COPY linux-amd64/containerd-*.tar.gz res/linux-amd64/
33-
COPY linux-arm64/containerd-*.tar.gz res/linux-arm64/
34-
35-
COPY linux-amd64/critools-*.tar.gz res/linux-amd64/
36-
COPY linux-arm64/critools-*.tar.gz res/linux-arm64/
37-
3832
COPY linux-amd64/kubernetes-*.tar.gz res/linux-amd64/
3933
COPY linux-arm64/kubernetes-*.tar.gz res/linux-arm64/
4034

build/docker/tools/provider-res/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations under the License.
1616

1717
IMAGE = provider-res
18-
VERSION = v1.20.4-2
18+
VERSION = v1.20.4-1
1919
REGISTRY_PREFIX ?= tkestack
2020

2121
COMMON_SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

build/docker/tools/provider-res/download.sh

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -56,38 +56,6 @@ function download::docker() {
5656
done
5757
}
5858

59-
function download::containerd() {
60-
if [ "${arch}" == "amd64" ]; then
61-
containerd_arch=amd64
62-
elif [ "${arch}" == "arm64" ]; then
63-
containerd_arch=amd64
64-
else
65-
echo "[ERROR] Fail to get containerd ${arch} on ${platform} platform."
66-
exit 255
67-
fi
68-
69-
for version in ${CONTAINERD_VERSIONS}; do
70-
wget -c "https://github.com/containerd/containerd/releases/download/v${version}/containerd-${version}-linux-${containerd_arch}.tar.gz" \
71-
-O "containerd-${platform}-${version}.tar.gz"
72-
done
73-
}
74-
75-
function download::critools() {
76-
if [ "${arch}" == "amd64" ]; then
77-
critools_arch=amd64
78-
elif [ "${arch}" == "arm64" ]; then
79-
critools_arch=arm
80-
else
81-
echo "[ERROR] Fail to get critools ${arch} on ${platform} platform."
82-
exit 255
83-
fi
84-
85-
for version in ${CRITOOLS_VERSIONS}; do
86-
wget -c "https://github.com/kubernetes-sigs/cri-tools/releases/download/${version}/crictl-${version}-linux-${critools_arch}.tar.gz" \
87-
-O "critools-${platform}-${version}.tar.gz"
88-
done
89-
}
90-
9159
function download::kubernetes() {
9260
for version in ${K8S_VERSIONS}; do
9361
if [[ "${version}" =~ "tke" ]]; then
@@ -147,8 +115,6 @@ for os in ${OSS}; do
147115

148116
download::cni_plugins
149117
download::docker
150-
download::containerd
151-
download::critools
152118
download::kubernetes
153119
download::nvidia_driver
154120
download::nvidia_container_runtime

build/docker/tools/tke-installer/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set -o pipefail
2323
REGISTRY_PREFIX=${REGISTRY_PREFIX:-tkestack}
2424
BUILDER=${BUILDER:-default}
2525
VERSION=${VERSION:-$(git describe --dirty --always --tags | sed 's/-/./g')}
26-
PROVIDER_RES_VERSION=v1.20.4-2
26+
PROVIDER_RES_VERSION=v1.20.4-1
2727
K8S_VERSION=${PROVIDER_RES_VERSION%-*}
2828
DOCKER_VERSION=19.03.14
2929
OSS=(linux)

0 commit comments

Comments
 (0)