Skip to content

ubergesundheit/kube-check-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kube-check-action

GitHub composite action to run kustomize, kubeconform and kube-linter

Inputs

See action.yml for up to date documentation.

inputs:
  kustomize_version:
    description: kustomize version
    required: false
    default: "5.4.0"
  kubeconform_version:
    description: kubeconform version
    required: false
    default: "0.6.4"
  kube-linter_version:
    description: kube-linter version
    required: false
    default: "0.6.8"
  pluto_version:
    description: pluto version
    required: false
    default: "5.19.0"
  kustomize_build_input:
    description: 'Input parameter for kustomize build'
    required: true
  kubeconform_flags:
    description: flags to supply to kubeconform
    required: false
  kube-linter_flags:
    description: flags to supply to kube-linter lint
    required: false

Example Usage

name: Check kubernetes manifests

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  check:
    name: Lint kubernetes manifests
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Build and validate kustomizations
        uses: ubergesundheit/kube-check-action@main
        with:
          kustomize_build_input: deployment/production
          kubeconform_flags: "-strict -kubernetes-version 1.22.7"

Validating sops encrypted Secrets

Add -schema-location 'https://raw.githubusercontent.com/ubergesundheit/kube-check-action/main/kubeconform-schemas/{{.ResourceKind}}.json' -schema-location default to your kubeconform_flags

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published