mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
9e97c97317
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> |
||
---|---|---|
.. | ||
kubeval.yaml | ||
OWNERS | ||
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/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.