1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/helm-conftest/0.1
PuneetPunamiya a74ca7b953 This patch splits helm-conftest from the conftest directory
Changes include:
  - moves the helm-conftest task to the task directory
  - moves and modifies readme file for helm-conftest task
  - moves OWNERS file from conftest directory

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-13 13:41:58 +01:00
..
helm-conftest.yaml This patch splits helm-conftest from the conftest directory 2020-07-13 13:41:58 +01:00
OWNERS This patch splits helm-conftest from the conftest directory 2020-07-13 13:41:58 +01:00
README.md This patch splits helm-conftest from the conftest directory 2020-07-13 13:41:58 +01:00

Conftest

These tasks make it possible to use Conftest within your Tekton pipelines. Conftest is a tool for testing configuration files using Open Policy Agent.

Installation

Conftest also has a Helm plugin, which redners the Helm chart before applying the policy. For that task use:

kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/helm-conftest/0.1/helm-conftest.yaml

Helm usage

Once installed, the Helm task can be used as follows:

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: helm-conftest-example
spec:
  taskRef:
    name: helm-conftest
  workspaces:
  - name: source
    persistentVolumeClaim:
      claimName: my-source
  params:
  - name: chart
    value: stable/mysql
  - name: policy
    value: stable/mysql/policy

Parameters

  • chart: The chart to test against the specified policies (default: .)
  • policy: Where to find the policies (default: policy)
  • output: Which output format to use (default: stdout)
  • args: An array of additional arguments to pass to Conftest (_default [])

Workspaces

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