Skip to content

A Drone Plugin (ported from the original GitHub Action) for Kubernetes IN Docker - local clusters for testing Kubernetes

License

Notifications You must be signed in to change notification settings

bh90210/kind-plugin

 
 

Repository files navigation

Kind Plugin

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.11.1)
  • 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)

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/[email protected]

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.

About

A Drone Plugin (ported from the original GitHub Action) for Kubernetes IN Docker - local clusters for testing Kubernetes

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 84.0%
  • JavaScript 16.0%