mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
328b67800f
Starting from 0.7.0, the later is not supported anymore. Signed-off-by: Vincent Demeester <vdemeest@redhat.com> |
||
---|---|---|
.. | ||
kubeval.yaml | ||
README.md |
Kubeval
This task makes it possible to use Kubeval within your Tekton pipelines. Kubeval is a tool used for validating Kubernetes configuration files.
Installation
In order to use Kubeval with Tekton you need to first install the task.
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/kubeval/kubeval.yaml
Usage
Once installed, the task can be used as follows:
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
name: kubeval-example
spec:
taskRef:
name: kubeval
inputs:
resources:
- name: source
resourceSpec:
type: git
params:
- name: revision
value: master
- name: url
value: https://github.com/instrumenta/conftest.git
By default the task will recursively scan the provided repository for YAML files and validate them against the Kubernetes schemas. You can change the default behavious, targetting particular directories, files or Kubernetes versions, using the parameters.
Inputs
Parameters
- files: The files or directories to test to validate against the schemas
- output: Which output format to use (default:
stdout
) - args: An arrag of additional arguments to pass to Kubeval (_defaultt
[]
)
Resources
- source: A
git
-typePipelineResource
specifying the location of the source to build.