Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
command

GitHub Action

Kubernetes toolset

v1.3.0

Kubernetes toolset

command

Kubernetes toolset

Github Action with Kubernetes tools: kubectl, kustomize, helm, kubeval, kubeaudit, conftest, jq, yq, go

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Kubernetes toolset

uses: stefanprodan/[email protected]

Learn more about this action in stefanprodan/kube-tools

Choose a version

kube-tools

CI Docker

Github Action with Kubernetes tools: kubectl, kustomize, helm, kubeval, conftest, jq, yq, go. See the release page for the list of avaible tools and versions.

GitHub Workflow example:

name: CI

on: [push, pull_request]

jobs:
  test-action:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Run Kubernetes tools
        uses: stefanprodan/kube-tools@v1
        with:
          kubectl: 1.16.2
          kustomize: 3.4.0
          helm: 2.16.1
          helmv3: 3.0.0
          command: |
            echo "Run conftest"
            kustomize build test/kustomize | conftest test -p test/policy -
            echo "Run kubeval"
            kustomize build test/kustomize | kubeval --strict

CircleCI example:

version: 2.1
jobs:
  test:
    docker:
      - image: stefanprodan/kube-tools:v1
    steps:
      - checkout
      - run:
          name: Run Kubernetes tools
          command: |
            kubectl version --client
            kustomize version
            helm version --client
            helmv3 version
            kubeval --version
            conftest --version
            yq --version
            jq --version
            go version