This is fork from https://github.com/instrumenta/kubeval adding support for new kubeval
command line arguments.
A GitHub Action for using Kubeval in your workflows.
You can use the action as follows:
on: push
name: Validate
jobs:
kubeval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: test
uses: vetyy/kubeval-action@master
with:
ignore_missing_schemas: true
additional_schema_locations: https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/
By default the action will recursively scan for YAML files and validate them as Kubernetes obejcts. You can configure this with the parameters.
The Kubeval Action has a number of properties which map to the parameters for Kubeval itself. These are
passed to the action using with
.
Property | Default | Description |
---|---|---|
files | . | Which files or directories to validate |
output | stdout | How to format the output from Conftest (stdout, json or tap) |
openshift | false | Whether or not to use the OpenShift schemas rather than the upstread Kubernetes ones |
strict | true | Whether ot not to fail for additional properties in objects |
ignore_missing_schemas | true | List of regular expressions specifying paths to ignore |
ignored_path_patterns | "" | Whether to fail if unknown resources are found |
additional_schema_locations | "" | Comma-seperated list of secondary base URLs used to download schemas |
reject_kinds | "" | Comma-separated list of case-sensitive kinds to prohibit validating against schemas |
skip_kinds | "" | Comma-separated list of case-sensitive kinds to skip when validating against schemas |
version | master | Which version of Kubernetes to validate against |