Skip to content

A GitHub Action for Kubernetes IN Docker - local clusters for testing Kubernetes

License

Notifications You must be signed in to change notification settings

ciso-sms/kind-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kind action

A GitHub Action for Kubernetes IN Docker - local clusters for testing Kubernetes, using kubernetes-sigs/kind.

Usage

Pre-requisites

  1. Create a workflow .yml 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 these inputs, see the API Documentation

  • version: The kind version to use (default: v0.5.1)
  • config: The path to the kind config file
  • node-image: The Docker image for the cluster nodes
  • 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
  • install-local-path-provisioner: If true, Rancher's local-path provisioner is installed which supports dynamic volume provisioning on multi-node clusters. The newly created local-path StorageClass is made the default.

Example workflow

Create a workflow (eg: .github/workflows/chart-testing.yml see Creating a Workflow file):

name: chart actions

on:
  push:
    branches:    
      - master 

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Create cluster
        uses: helm/kind-action@v1
        with:
          installLocalPathProvisioner: true

This uses @helm/kind-action to create a local Kubernetes cluster using kubernetes-sigs/kind – during every push to master.

Code of conduct

Participation in the Helm community is governed by the Code of Conduct.

About

A GitHub Action for Kubernetes IN Docker - local clusters for testing Kubernetes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 85.6%
  • JavaScript 14.4%