Skip to content

Commit

Permalink
fix test-cmd kubeadm build
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Nov 13, 2024
1 parent 513a49a commit 01ef815
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,10 @@ format-all-patch:
test:
./hack/test.sh

# before v1.25
.PHONY: test-cmd
test-cmd:
./hack/test_cmd.sh

# after v1.26
.PHONY: test-cmd-2
test-cmd-2:
./hack/test_cmd_2.sh

.PHONY: test-integration
test-integration:
./hack/test_integration.sh
Expand Down
6 changes: 6 additions & 0 deletions hack/test_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ set -o nounset
set -o pipefail

source "kit/helper.sh"
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
cd "${WORKDIR}"

# Kubeadm was added for testing in 1.19 and later
for n in {1..5}; do
echo "+++ Test retry ${n}"
./build/shell.sh -c '
# before v1.25
make generated_files kubeadm
# after v1.26
make all -C "${KUBE_ROOT}" WHAT=cmd/kubeadm
mkdir -p _output/local/go/bin/ && cp _output/dockerized/bin/linux/amd64/kubeadm _output/local/go/bin/
./hack/install-etcd.sh
PATH=$(pwd)/third_party/etcd:${PATH} make test-cmd
Expand Down
22 changes: 0 additions & 22 deletions hack/test_cmd_2.sh

This file was deleted.

2 changes: 1 addition & 1 deletion releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ releases:
- nokmem.1.20

- name: v1.18.20-lts.2
base_release: v1.18.20
base_release: v1.18.20-ci
must: true
patches:
- CVE-2020-8554.1.18
Expand Down

0 comments on commit 01ef815

Please sign in to comment.