Skip to content

Commit 3bef17c

Browse files
authoredApr 13, 2022
Update kind to v0.12.0 and default k8s version to v1.21.10 (#58)
* 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>
1 parent 2a52570 commit 3bef17c

File tree

5 files changed

+40
-6
lines changed

5 files changed

+40
-6
lines changed
 

‎.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10

‎.github/workflows/test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ jobs:
3737
run: |
3838
kubectl cluster-info
3939
kubectl get storageclass standard
40+
41+
test-with-custom-k8s-version:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v2
46+
47+
- name: Create kind cluster with custom name
48+
uses: ./
49+
with:
50+
kubectl_version: "v1.23.4"
51+
52+
- name: Test
53+
run: |
54+
kubectl cluster-info
55+
kubectl get nodes

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ For more information, reference the GitHub Help Documentation for [Creating a wo
1515

1616
For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)
1717

18-
- `version`: The kind version to use (default: `v0.11.1`)
18+
- `version`: The kind version to use (default: `v0.12.0`)
1919
- `config`: The path to the kind config file
2020
- `node_image`: The Docker image for the cluster nodes
2121
- `cluster_name`: The name of the cluster to create (default: `chart-testing`)
2222
- `wait`: The duration to wait for the control plane to become ready (default: `60s`)
2323
- `log_level`: The log level for kind
24-
- `kubectl_version`: The kubectl version to use (default: v1.20.8)
24+
- `kubectl_version`: The kubectl version to use (default: v1.21.10)
2525

2626
### Example Workflow
2727

‎action.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,30 @@ branding:
66
icon: box
77
inputs:
88
version:
9-
description: "The kind version to use (default: v0.11.1)"
9+
description: "The kind version to use (default: v0.12.0)"
10+
required: false
11+
default: "v0.12.0"
1012
config:
1113
description: "The path to the kind config file"
14+
required: false
1215
node_image:
1316
description: "The Docker image for the cluster nodes"
17+
required: false
1418
cluster_name:
1519
description: "The name of the cluster to create (default: chart-testing)"
20+
required: false
21+
default: "chart-testing"
1622
wait:
1723
description: "The duration to wait for the control plane to become ready (default: 60s)"
24+
required: false
25+
default: "60s"
1826
log_level:
1927
description: "The log level for kind"
28+
required: false
2029
kubectl_version:
21-
description: "The kubectl version to use (default: v1.20.8)"
30+
description: "The kubectl version to use (default: v1.21.10)"
31+
required: false
32+
default: "v1.21.10"
2233
runs:
2334
using: "node12"
2435
main: "main.js"

‎kind.sh

Lines changed: 2 additions & 2 deletions
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.11.1
21+
DEFAULT_KIND_VERSION=v0.12.0
2222
DEFAULT_CLUSTER_NAME=chart-testing
23-
DEFAULT_KUBECTL_VERSION=v1.20.8
23+
DEFAULT_KUBECTL_VERSION=v1.21.10
2424

2525
show_help() {
2626
cat << EOF

0 commit comments

Comments
 (0)