mirror of
https://github.com/helm/kind-action
synced 2024-05-13 20:29:54 +00:00
Mirror
https://kind.sigs.k8s.io/
6848e82a1b
Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).
Updates `actions/checkout` from 4.1.4 to 4.1.5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](
|
||
---|---|---|
.github | ||
.gitignore | ||
action.yml | ||
cleanup.js | ||
cleanup.sh | ||
CODE_OF_CONDUCT.md | ||
kind.sh | ||
LICENSE | ||
main.js | ||
main.sh | ||
README.md |
Kind Action
A GitHub Action for Kubernetes IN Docker - local clusters for testing Kubernetes using kubernetes-sigs/kind.
Usage
Pre-requisites
Create a workflow YAML file in your .github/workflows
directory. An example workflow is available below.
For more information, reference the GitHub Help Documentation for Creating a workflow file.
Inputs
For more information on inputs, see the API Documentation
version
: The kind version to use (default:v0.21.0
)config
: The path to the kind config filenode_image
: The Docker image for the cluster nodescluster_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 outputkubectl_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)
Example Workflow
Create a workflow (eg: .github/workflows/create-cluster.yml
):
name: Create Cluster
on: pull_request
jobs:
create-cluster:
runs-on: ubuntu-latest
steps:
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
This uses @helm/kind-action GitHub Action to spin up a kind Kubernetes cluster on every Pull Request. See @helm/chart-testing-action for a more practical example.
Code of conduct
Participation in the Helm community is governed by the Code of Conduct.