1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/kubeval
Vincent Demeester 328b67800f Update templating to use $(…) instead of ${…}
Starting from 0.7.0, the later is not supported anymore.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-09-24 08:36:12 -05:00
..
kubeval.yaml Update templating to use $(…) instead of ${…} 2019-09-24 08:36:12 -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.