Skip to content

Commit ddfd650

Browse files
authored
Merge pull request #6549 from seanlaii/kind-0.29
Bump sigs.k8s.io/kind to v0.29.0
2 parents 538aff6 + f281d69 commit ddfd650

File tree

33 files changed

+108
-1180
lines changed

33 files changed

+108
-1180
lines changed

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ require (
5757
sigs.k8s.io/cluster-api v1.7.1
5858
sigs.k8s.io/controller-runtime v0.21.0
5959
sigs.k8s.io/custom-metrics-apiserver v1.33.0
60-
sigs.k8s.io/kind v0.25.0
60+
sigs.k8s.io/kind v0.29.0
6161
sigs.k8s.io/mcs-api v0.1.0
6262
sigs.k8s.io/metrics-server v0.8.0
6363
sigs.k8s.io/structured-merge-diff/v4 v4.6.0
6464
sigs.k8s.io/yaml v1.4.0
6565
)
6666

6767
require (
68+
al.essio.dev/pkg/shellescape v1.5.1 // indirect
6869
cel.dev/expr v0.20.0 // indirect
6970
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
7071
github.com/BurntSushi/toml v1.4.0 // indirect
7172
github.com/MakeNowJust/heredoc v1.0.0 // indirect
7273
github.com/NYTimes/gziphandler v1.1.1 // indirect
73-
github.com/alessio/shellescape v1.4.2 // indirect
7474
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
7575
github.com/beorn7/perks v1.0.1 // indirect
7676
github.com/blang/semver/v4 v4.0.0 // indirect
@@ -101,7 +101,6 @@ require (
101101
github.com/google/cel-go v0.23.2 // indirect
102102
github.com/google/gnostic-models v0.6.9 // indirect
103103
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
104-
github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2 // indirect
105104
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
106105
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
107106
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect

go.sum

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
al.essio.dev/pkg/shellescape v1.5.1 h1:86HrALUujYS/h+GtqoB26SBEdkWfmMI6FubjXlsXyho=
2+
al.essio.dev/pkg/shellescape v1.5.1/go.mod h1:6sIqp7X2P6mThCQ7twERpZTuigpr6KbZWtls1U8I890=
13
cel.dev/expr v0.20.0 h1:OunBvVCfvpWlt4dN7zg3FM6TDkzOePe1+foGJ9AXeeI=
24
cel.dev/expr v0.20.0/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw=
35
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
@@ -33,8 +35,6 @@ github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4Rq
3335
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
3436
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
3537
github.com/alessio/shellescape v1.2.2/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30=
36-
github.com/alessio/shellescape v1.4.2 h1:MHPfaU+ddJ0/bYWpgIeUnQUqKrlJ1S7BfEYPM4uEoM0=
37-
github.com/alessio/shellescape v1.4.2/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30=
3838
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
3939
github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=
4040
github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
@@ -258,8 +258,6 @@ github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXi
258258
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
259259
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8=
260260
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
261-
github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2 h1:SJ+NtwL6QaZ21U+IrK7d0gGgpjGGvd2kz+FzTHVzdqI=
262-
github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2/go.mod h1:Tv1PlzqC9t8wNnpPdctvtSUOPUUg4SHeE6vR1Ir2hmg=
263261
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
264262
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
265263
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@@ -915,8 +913,8 @@ sigs.k8s.io/custom-metrics-apiserver v1.33.0/go.mod h1:7lxzUW4z5aEaXOtqOdzh8+pzJ
915913
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8=
916914
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo=
917915
sigs.k8s.io/kind v0.8.1/go.mod h1:oNKTxUVPYkV9lWzY6CVMNluVq8cBsyq+UgPJdvA3uu4=
918-
sigs.k8s.io/kind v0.25.0 h1:ugUvgesHKKA0yKmD6QtYTiEev+kPUpGxdTPbMGf8VTU=
919-
sigs.k8s.io/kind v0.25.0/go.mod h1:t7ueEpzPYJvHA8aeLtI52rtFftNgUYUaCwvxjk7phfw=
916+
sigs.k8s.io/kind v0.29.0 h1:3TpCsyh908IkXXpcSnsMjWdwdWjIl7o9IMZImZCWFnI=
917+
sigs.k8s.io/kind v0.29.0/go.mod h1:ldWQisw2NYyM6k64o/tkZng/1qQW7OlzcN5a8geJX3o=
920918
sigs.k8s.io/kustomize/api v0.19.0 h1:F+2HB2mU1MSiR9Hp1NEgoU2q9ItNOaBJl0I4Dlus5SQ=
921919
sigs.k8s.io/kustomize/api v0.19.0/go.mod h1:/BbwnivGVcBh1r+8m3tH1VNxJmHSk1PzP5fkP6lbL1o=
922920
sigs.k8s.io/kustomize/kyaml v0.19.0 h1:RFge5qsO1uHhwJsu3ipV7RNolC7Uozc0jUBC/61XSlA=

hack/cli-testing-environment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ BUILD_PATH=${BUILD_PATH:-"_output/bin/linux/amd64"}
3535

3636

3737
# install kind and kubectl
38-
kind_version=v0.25.0
3938
echo -n "Preparing: 'kind' existence check - "
4039
if util::cmd_exist kind; then
4140
echo "passed"
4241
else
4342
echo "not pass"
44-
util::install_tools "sigs.k8s.io/kind" $kind_version
43+
# Install kind using the version defined in util.sh
44+
util::install_tools "sigs.k8s.io/kind" "${KIND_VERSION}"
4545
fi
4646
# get arch name and os name in bootstrap
4747
BS_ARCH=$(go env GOARCH)

hack/cli-testing-init-with-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ BUILD_PATH=${BUILD_PATH:-"_output/bin/linux/amd64"}
3535
CONFIG_FILE_PATH=${CONFIG_FILE_PATH:-"/tmp/karmada-config.yaml"}
3636

3737
# install kind and kubectl
38-
kind_version=v0.25.0
3938
echo -n "Preparing: 'kind' existence check - "
4039
if util::cmd_exist kind; then
4140
echo "passed"
4241
else
4342
echo "not pass"
44-
util::install_tools "sigs.k8s.io/kind" $kind_version
43+
# Install kind using the version defined in util.sh
44+
util::install_tools "sigs.k8s.io/kind" "${KIND_VERSION}"
4545
fi
4646
# get arch name and os name in bootstrap
4747
BS_ARCH=$(go env GOARCH)

hack/setup-dev-base.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ util::verify_go_version
6060
util::cmd_must_exist "docker"
6161

6262
# install kind and kubectl
63-
kind_version=v0.25.0
6463
echo -n "Preparing: 'kind' existence check - "
6564
if util::cmd_exist kind; then
6665
echo "passed"
6766
else
6867
echo "not pass"
69-
util::install_tools "sigs.k8s.io/kind" $kind_version
68+
# Install kind using the version defined in util.sh
69+
util::install_tools "sigs.k8s.io/kind" "${KIND_VERSION}"
7070
fi
7171

7272
# get arch name and os name in bootstrap

hack/util.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ MIN_GO_VERSION="go$(go list -m -f {{.GoVersion}})"
4141

4242
DEFAULT_CLUSTER_VERSION="kindest/node:v1.31.2"
4343

44+
# KIND_VERSION defines the version of Kind (Kubernetes IN Docker) tool to be used
45+
# across all scripts in the project. This version is referenced by:
46+
# - setup-dev-base.sh
47+
# - cli-testing-environment.sh
48+
# - cli-testing-init-with-config.sh
49+
KIND_VERSION=$(grep 'sigs.k8s.io/kind ' $(dirname "${BASH_SOURCE[0]}")/../go.mod | awk '{print $2}')
50+
4451
KARMADA_TARGET_SOURCE=(
4552
karmada-aggregated-apiserver=cmd/aggregated-apiserver
4653
karmada-controller-manager=cmd/controller-manager

vendor/github.com/alessio/shellescape/.gitignore renamed to vendor/al.essio.dev/pkg/shellescape/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ _testmain.go
2626
.idea/
2727

2828
escargs
29+
30+
config.hcl
31+
32+
.DS_Store
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)