From 3bef17c7a6299fd61baf6166e1f4c44fd664f82d Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 13 Apr 2022 09:25:02 +0200 Subject: [PATCH] Update kind to v0.12.0 and default k8s version to v1.21.10 (#58) * add dependabot Signed-off-by: cpanato * update kind to v0.12.0 and default k8s to v1.21.10 Signed-off-by: cpanato --- .github/dependabot.yml | 7 +++++++ .github/workflows/test.yaml | 16 ++++++++++++++++ README.md | 4 ++-- action.yml | 15 +++++++++++++-- kind.sh | 4 ++-- 5 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3eb9d4e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: weekly + open-pull-requests-limit: 10 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 553609c..dc84b54 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,3 +37,19 @@ jobs: run: | kubectl cluster-info kubectl get storageclass standard + + test-with-custom-k8s-version: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Create kind cluster with custom name + uses: ./ + with: + kubectl_version: "v1.23.4" + + - name: Test + run: | + kubectl cluster-info + kubectl get nodes diff --git a/README.md b/README.md index 5760288..c02aeeb 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.11.1`) +- `version`: The kind version to use (default: `v0.12.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`) - `log_level`: The log level for kind -- `kubectl_version`: The kubectl version to use (default: v1.20.8) +- `kubectl_version`: The kubectl version to use (default: v1.21.10) ### Example Workflow diff --git a/action.yml b/action.yml index 1efedf5..6c6d30a 100644 --- a/action.yml +++ b/action.yml @@ -6,19 +6,30 @@ branding: icon: box inputs: version: - description: "The kind version to use (default: v0.11.1)" + description: "The kind version to use (default: v0.12.0)" + required: false + default: "v0.12.0" config: description: "The path to the kind config file" + required: false node_image: description: "The Docker image for the cluster nodes" + required: false cluster_name: description: "The name of the cluster to create (default: chart-testing)" + required: false + default: "chart-testing" wait: description: "The duration to wait for the control plane to become ready (default: 60s)" + required: false + default: "60s" log_level: description: "The log level for kind" + required: false kubectl_version: - description: "The kubectl version to use (default: v1.20.8)" + description: "The kubectl version to use (default: v1.21.10)" + required: false + default: "v1.21.10" runs: using: "node12" main: "main.js" diff --git a/kind.sh b/kind.sh index d525fc2..b811e9b 100755 --- a/kind.sh +++ b/kind.sh @@ -18,9 +18,9 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_KIND_VERSION=v0.11.1 +DEFAULT_KIND_VERSION=v0.12.0 DEFAULT_CLUSTER_NAME=chart-testing -DEFAULT_KUBECTL_VERSION=v1.20.8 +DEFAULT_KUBECTL_VERSION=v1.21.10 show_help() { cat << EOF