From 8300bd06573c6f1881ff7a3261ed38b7f05d202f Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 13 Feb 2024 17:07:28 +0100 Subject: [PATCH 1/5] Update kind to release v0.21.0 (#104) * update kind to release v0.21.0 Signed-off-by: cpanato * update readme Signed-off-by: cpanato --------- Signed-off-by: cpanato --- README.md | 4 ++-- action.yml | 8 ++++---- kind.sh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 632d7a0..1309d66 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,13 @@ For more information, reference the GitHub Help Documentation for [Creating a wo For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input) -- `version`: The kind version to use (default: `v0.20.0`) +- `version`: The kind version to use (default: `v0.21.0`) - `config`: The path to the kind config file - `node_image`: The Docker image for the cluster nodes - `cluster_name`: The name of the cluster to create (default: `chart-testing`) - `wait`: The duration to wait for the control plane to become ready (default: `60s`) - `verbosity`: info log verbosity, higher value produces more output -- `kubectl_version`: The kubectl version to use (default: v1.26.4) +- `kubectl_version`: The kubectl version to use (default: v1.28.6) - `install_only`: Skips cluster creation, only install kind (default: false) - `ignore_failed_clean`: Whether to ignore the post delete cluster action failing (default: false) diff --git a/action.yml b/action.yml index 976e5ba..51cd4a0 100644 --- a/action.yml +++ b/action.yml @@ -6,9 +6,9 @@ branding: icon: box inputs: version: - description: "The kind version to use (default: v0.20.0)" + description: "The kind version to use (default: v0.21.0)" required: false - default: "v0.20.0" + default: "v0.21.0" config: description: "The path to the kind config file" required: false @@ -28,9 +28,9 @@ inputs: default: "0" required: false kubectl_version: - description: "The kubectl version to use (default: v1.26.4)" + description: "The kubectl version to use (default: v1.28.6)" required: false - default: "v1.26.4" + default: "v1.28.6" install_only: description: "Skips cluster creation, only install kind (default: false)" required: false diff --git a/kind.sh b/kind.sh index bf9b5b0..dcd3cee 100755 --- a/kind.sh +++ b/kind.sh @@ -18,9 +18,9 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_KIND_VERSION=v0.20.0 +DEFAULT_KIND_VERSION=v0.21.0 DEFAULT_CLUSTER_NAME=chart-testing -DEFAULT_KUBECTL_VERSION=v1.26.6 +DEFAULT_KUBECTL_VERSION=v1.28.6 show_help() { cat << EOF From e89fbc4770626936aff83e4c6d7cbb45dd44ec90 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 09:55:33 +0100 Subject: [PATCH 2/5] Bump actions/checkout from 4.1.1 to 4.1.2 (#106) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/b4ffde65f46336ab88eb53be808477a3936bae11...9bb56186c3b09b4f86b1c65136769dd318469633) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9c534fb..59b9df0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Create kind cluster uses: ./ @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Create kind cluster with custom verbosity uses: ./ @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Create kind cluster with custom name uses: ./ @@ -58,7 +58,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Only install kind without starting a cluster uses: ./ @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Create kind cluster with custom name uses: ./ @@ -89,7 +89,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Create kind cluster with custom name uses: ./ @@ -105,7 +105,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Create kind cluster with custom name uses: ./ From d8213862f9c8d913253e67ea3b83482b5d826d30 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:58:41 +0200 Subject: [PATCH 3/5] Bump actions/checkout from 4.1.2 to 4.1.3 (#108) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9bb56186c3b09b4f86b1c65136769dd318469633...1d96c772d19495a3b5c517cd2bc0cb401ea0529f) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 59b9df0..edf420d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Create kind cluster uses: ./ @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Create kind cluster with custom verbosity uses: ./ @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Create kind cluster with custom name uses: ./ @@ -58,7 +58,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Only install kind without starting a cluster uses: ./ @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Create kind cluster with custom name uses: ./ @@ -89,7 +89,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Create kind cluster with custom name uses: ./ @@ -105,7 +105,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Create kind cluster with custom name uses: ./ From 2a7d25fbd929f7bf3312a796d30d5c8fecddfafd Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 23 Apr 2024 01:34:18 +0200 Subject: [PATCH 4/5] bump kind to 0.22.0 / kubectl and general housekeeping (#107) Signed-off-by: cpanato --- .github/dependabot.yml | 16 +++++++++++----- .github/workflows/test.yaml | 21 +++++++++++++++++++-- action.yml | 10 +++++----- kind.sh | 15 +++++++++++---- 4 files changed, 46 insertions(+), 16 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3eb9d4e..57bbb38 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,13 @@ +--- version: 2 updates: -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: weekly - open-pull-requests-limit: 10 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: weekly + open-pull-requests-limit: 10 + groups: + actions: + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index edf420d..b146e9a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -69,6 +69,23 @@ jobs: run: | [[ $(kind get clusters | wc -l) -eq 0 ]] + test-with-custom-kind-version: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + + - name: Create kind cluster with custom name + uses: ./ + with: + version: "v0.21.0" + + - name: Test + run: | + kind version + kubectl cluster-info + kubectl get nodes + test-with-custom-kubectl-version: runs-on: ubuntu-latest steps: @@ -78,7 +95,7 @@ jobs: - name: Create kind cluster with custom name uses: ./ with: - kubectl_version: "v1.27.1" + kubectl_version: "v1.29.3" - name: Test run: | @@ -110,7 +127,7 @@ jobs: - name: Create kind cluster with custom name uses: ./ with: - kubectl_version: "v1.24.6" + kubectl_version: "v1.29.3" ignore_failed_clean: true - name: Test diff --git a/action.yml b/action.yml index 51cd4a0..4a77a84 100644 --- a/action.yml +++ b/action.yml @@ -6,9 +6,9 @@ branding: icon: box inputs: version: - description: "The kind version to use (default: v0.21.0)" + description: "The kind version to use (default: v0.22.0)" required: false - default: "v0.21.0" + default: "v0.22.0" config: description: "The path to the kind config file" required: false @@ -28,15 +28,15 @@ inputs: default: "0" required: false kubectl_version: - description: "The kubectl version to use (default: v1.28.6)" + description: "The kubectl version to use (default: v1.29.3)" required: false - default: "v1.28.6" + default: "v1.29.3" install_only: description: "Skips cluster creation, only install kind (default: false)" required: false ignore_failed_clean: description: "Whether to ignore the post-delete the cluster (default: false)" - default: false + default: "false" required: false runs: using: "node20" diff --git a/kind.sh b/kind.sh index dcd3cee..54460b4 100755 --- a/kind.sh +++ b/kind.sh @@ -18,9 +18,9 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_KIND_VERSION=v0.21.0 +DEFAULT_KIND_VERSION=v0.22.0 DEFAULT_CLUSTER_NAME=chart-testing -DEFAULT_KUBECTL_VERSION=v1.28.6 +DEFAULT_KUBECTL_VERSION=v1.29.3 show_help() { cat << EOF @@ -62,6 +62,7 @@ main() { i686) arch="386" ;; x86_64) arch="amd64" ;; arm|aarch64|arm64) arch="arm64" ;; + *) exit 1 ;; esac local cache_dir="${RUNNER_TOOL_CACHE}/kind/${version}/${arch}" @@ -188,8 +189,14 @@ install_kind() { mkdir -p "${kind_dir}" - curl -sSLo "${kind_dir}/kind" "https://github.com/kubernetes-sigs/kind/releases/download/${version}/kind-linux-${arch}" - chmod +x "${kind_dir}/kind" + pushd "${kind_dir}" + wget --quiet "https://github.com/kubernetes-sigs/kind/releases/download/${version}/kind-linux-${arch}" + wget --quiet "https://github.com/kubernetes-sigs/kind/releases/download/${version}/kind-linux-${arch}.sha256sum" + grep "kind-linux-${arch}" < "kind-linux-${arch}.sha256sum" | sha256sum -c + mv "kind-linux-${arch}" kind + rm -f "kind-linux-${arch}.sha256sum" + chmod +x kind + popd } install_kubectl() { From 0025e74a8c7512023d06dc019c617aa3cf561fde Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:47:31 +0200 Subject: [PATCH 5/5] Bump actions/checkout from 4.1.2 to 4.1.3 in the actions group (#109) Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4.1.2 to 4.1.3 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.2...1d96c772d19495a3b5c517cd2bc0cb401ea0529f) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b146e9a..211c12c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Create kind cluster with custom name uses: ./