Skip to content

Commit

Permalink
fix v1.26 update-codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Nov 13, 2024
1 parent b8d3759 commit 5c97495
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 24 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,16 @@ 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
22 changes: 22 additions & 0 deletions hack/test_cmd_2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..

source "kit/helper.sh"
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 '
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
' 2>&1 | grep -v -E '^I\w+ ' && exit 0
done
2 changes: 1 addition & 1 deletion patches/update-kube-proxy-iptables.1.18.patch
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ index 70e3874b441..4c67a178517 100644
},
}
diff --git a/build/common.sh b/build/common.sh
index 9cd95b5af51..13c15466c39 100755
index 75dc82ed335..3771dafdaf5 100755
--- a/build/common.sh
+++ b/build/common.sh
@@ -95,14 +95,14 @@ readonly KUBE_CONTAINER_RSYNC_PORT=8730
Expand Down
53 changes: 30 additions & 23 deletions releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ releases:
- fix-kubectl-convert-97644.1.20
- nokmem.1.20

- name: v1.20.2-lts.2
base_release: v1.20.2-ci
must: true
patches:
- fix-kubectl-convert-97644.1.20
- nokmem.1.20
# use v1.20.15-lts.2 instead
# - name: v1.20.2-lts.2
# base_release: v1.20.2-ci
# must: true
# patches:
# - fix-kubectl-convert-97644.1.20
# - nokmem.1.20

- name: v1.19.16-lts.3
base_release: v1.19.16-ci
Expand All @@ -64,18 +65,23 @@ releases:
- nokmem.1.20

- name: v1.18.20-lts.2
base_release: v1.18.20-ci
base_release: v1.18.20
must: true
patches:
- CVE-2020-8554.1.18
- fix-missing-env-91500.1.18
- CVE-2021-25741.1.18
- nokmem.1.20

- name: v1.18.20-dce.1
base_release: v1.18.20-lts.2
patches:
- update-kube-proxy-iptables.1.18

# comments this as dce.1 do not needs to be updated
# - name: v1.18.20-dce.1
# base_release: release-1.18
# patches:
# - update-kube-proxy-iptables.1.18
# - CVE-2020-8554.1.18
# - fix-missing-env-91500.1.18
# - CVE-2021-25741.1.18
# - nokmem.1.20

- name: v1.17.17-lts.2
base_release: v1.17.17-ci
Expand Down Expand Up @@ -260,17 +266,18 @@ releases:
- k8s.io/kubernetes/pkg/volume/csi
- k8s.io/kubernetes/pkg/util/oom

- name: v1.20.2-ci
base_release: v1.20.2
patches:
- fix-run-docker.1.24
- no-delete-images.1.24
- fix-etcd-put-key.1.23
test_failures_tolerated:
- k8s.io/kubernetes/pkg/kubelet/volumemanager/reconciler
- k8s.io/kubernetes/pkg/volume/csi
- k8s.io/kubernetes/vendor/k8s.io/kube-aggregator/pkg/apiserver
- k8s.io/kubernetes/pkg/util/oom
# use v1.20.15-ci instead
# - name: v1.20.2-ci
# base_release: v1.20.2
# patches:
# - fix-run-docker.1.24
# - no-delete-images.1.24
# - fix-etcd-put-key.1.23
# test_failures_tolerated:
# - k8s.io/kubernetes/pkg/kubelet/volumemanager/reconciler
# - k8s.io/kubernetes/pkg/volume/csi
# - k8s.io/kubernetes/vendor/k8s.io/kube-aggregator/pkg/apiserver
# - k8s.io/kubernetes/pkg/util/oom

- name: v1.19.16-ci
base_release: v1.19.16
Expand Down

0 comments on commit 5c97495

Please sign in to comment.