1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-12-11 07:50:29 +00:00
catalog/kubeval
Vincent Demeester 55033bb02a Use workingDir instead of workingdir 🐺
Just use the correct camelcase field.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-03-04 09:02:46 -06:00
..
kubeval.yaml Use workingDir instead of workingdir 🐺 2020-03-04 09:02:46 -06:00
OWNERS Add initial OWNERS to some folders 📄 2019-10-23 04:53:23 -05:00
README.md Added task for Kubeval 2019-08-19 03:39:59 -05:00

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-type PipelineResource specifying the location of the source to build.