mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
f3ebc33423
We don't really have a concept in Tekton of something called a "Workspace volume", but multiple READMEs now refer to it. This commit removes the term "Workspace volume" in favor of simply "Workspace". |
||
---|---|---|
.. | ||
helm-conftest.yaml | ||
OWNERS | ||
README.md |
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 containing the source to build.