Files
domain/share/gitea-tekton-org/tekton.dev_v1beta1_Task_kubeval.yaml
2024-04-19 12:22:23 +02:00

41 lines
1.1 KiB
YAML

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: kubeval
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/categories: Code Quality, Kubernetes
tekton.dev/tags: test
tekton.dev/platforms: "linux/amd64"
spec:
description: >-
This task makes it possible to use Kubeval within your Tekton pipelines.
Kubeval is a tool used for validating Kubernetes configuration files. By
default the task will recursively scan the provided repository for YAML
files and validate them against the Kubernetes schemas.
workspaces:
- name: source
params:
- name: files
default: "."
- name: output
default: "stdout"
- name: args
type: array
default: []
steps:
- name: kubeval
workingDir: $(workspaces.source.path)
image: docker.io/garethr/kubeval:0.15.0@sha256:6962d8ecbb7839637667f66e6703e6ebaae0c29dfe93a31d9968fba4324c7b8d #tag: 0.15.0
command:
- kubeval
- -d
- $(params.files)
- -o
- $(params.output)
- $(params.args)