Skip to content

Commit

Permalink
Update kind to v0.12.0 and default k8s version to v1.21.10 (#58)
Browse files Browse the repository at this point in the history
* add dependabot

Signed-off-by: cpanato <ctadeu@gmail.com>

* update kind to v0.12.0 and default k8s to v1.21.10

Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Apr 13, 2022
1 parent 2a52570 commit 3bef17c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
16 changes: 16 additions & 0 deletions .github/workflows/test.yaml
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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

Expand Down
15 changes: 13 additions & 2 deletions action.yml
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions kind.sh
Expand Up @@ -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
Expand Down

0 comments on commit 3bef17c

Please sign in to comment.