1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/kubeval/0.1
pratap0007 9e97c97317 Modifies kubeval task according to the new reorg proposal
Changes include:
  - adds version label
  - adds a minimum pipeline versions supported by the task
  - adds tags for task
  - modified description to add a summary

This patch also moves the kubeval files to the task directory
and modifies the path for install task command in readme file

Issue: #386

Signed-off-by: Shiv Verma <shverma@redhat.com>
2020-07-10 22:06:57 +01:00
..
kubeval.yaml Modifies kubeval task according to the new reorg proposal 2020-07-10 22:06:57 +01:00
OWNERS Modifies kubeval task according to the new reorg proposal 2020-07-10 22:06:57 +01:00
README.md Modifies kubeval task according to the new reorg proposal 2020-07-10 22:06:57 +01: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/task/kubeval/0.1/kubeval.yaml

Usage

Once installed, the task can be used as follows:

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: kubeval-example
spec:
  taskRef:
    name: kubeval
  workspaces:
  - name: source
    persistentVolumeClaim:
      claimName: my-source

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.

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 [])

Workspaces

  • source: A Workspace volume containing the source to build.