Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kind to v0.12.0 and default k8s version to v1.21.10 #58

Merged
merged 2 commits into from Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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