Skip to content

Commit c844db0

Browse files
committed
bump kind to 0.22.0 / kubectl and general housekeeping
Signed-off-by: cpanato <ctadeu@gmail.com>
1 parent e89fbc4 commit c844db0

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

.github/dependabot.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
---
12
version: 2
23
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
open-pull-requests-limit: 10
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: weekly
8+
open-pull-requests-limit: 10
9+
groups:
10+
actions:
11+
update-types:
12+
- "minor"
13+
- "patch"

.github/workflows/test.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Create kind cluster with custom name
7979
uses: ./
8080
with:
81-
kubectl_version: "v1.27.1"
81+
kubectl_version: "v1.29.3"
8282

8383
- name: Test
8484
run: |
@@ -110,7 +110,7 @@ jobs:
110110
- name: Create kind cluster with custom name
111111
uses: ./
112112
with:
113-
kubectl_version: "v1.24.6"
113+
kubectl_version: "v1.29.3"
114114
ignore_failed_clean: true
115115

116116
- name: Test

action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ branding:
66
icon: box
77
inputs:
88
version:
9-
description: "The kind version to use (default: v0.21.0)"
9+
description: "The kind version to use (default: v0.22.0)"
1010
required: false
11-
default: "v0.21.0"
11+
default: "v0.22.0"
1212
config:
1313
description: "The path to the kind config file"
1414
required: false
@@ -28,15 +28,15 @@ inputs:
2828
default: "0"
2929
required: false
3030
kubectl_version:
31-
description: "The kubectl version to use (default: v1.28.6)"
31+
description: "The kubectl version to use (default: v1.29.3)"
3232
required: false
33-
default: "v1.28.6"
33+
default: "v1.29.3"
3434
install_only:
3535
description: "Skips cluster creation, only install kind (default: false)"
3636
required: false
3737
ignore_failed_clean:
3838
description: "Whether to ignore the post-delete the cluster (default: false)"
39-
default: false
39+
default: "false"
4040
required: false
4141
runs:
4242
using: "node20"

kind.sh

+11-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
DEFAULT_KIND_VERSION=v0.21.0
21+
DEFAULT_KIND_VERSION=v0.22.0
2222
DEFAULT_CLUSTER_NAME=chart-testing
23-
DEFAULT_KUBECTL_VERSION=v1.28.6
23+
DEFAULT_KUBECTL_VERSION=v1.29.3
2424

2525
show_help() {
2626
cat << EOF
@@ -62,6 +62,7 @@ main() {
6262
i686) arch="386" ;;
6363
x86_64) arch="amd64" ;;
6464
arm|aarch64|arm64) arch="arm64" ;;
65+
*) exit 1 ;;
6566
esac
6667
local cache_dir="${RUNNER_TOOL_CACHE}/kind/${version}/${arch}"
6768

@@ -188,8 +189,14 @@ install_kind() {
188189

189190
mkdir -p "${kind_dir}"
190191

191-
curl -sSLo "${kind_dir}/kind" "https://github.com/kubernetes-sigs/kind/releases/download/${version}/kind-linux-${arch}"
192-
chmod +x "${kind_dir}/kind"
192+
pushd "${kind_dir}"
193+
wget "https://github.com/kubernetes-sigs/kind/releases/download/${version}/kind-linux-${arch}"
194+
wget "https://github.com/kubernetes-sigs/kind/releases/download/${version}/kind-linux-${arch}.sha256sum"
195+
grep "kind-linux-${arch}" < "kind-linux-${arch}.sha256sum" | sha256sum -c
196+
mv "kind-linux-${arch}" kind
197+
rm -f "kind-linux-${arch}.sha256sum"
198+
chmod +x kind
199+
popd
193200
}
194201

195202
install_kubectl() {

0 commit comments

Comments
 (0)