You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
As part of our effort to support various plugins, we would like to create a Tekton Task that will enable users to run the Datree CLI as part of their Tekton pipeline/s.
Requirements:
Knowledge of yaml.
No knowledge of the Datree codebase is needed.
Resources:
To get started with creating a Tekton Task, see the Tekton readme.
For all Datree-related resources, see the Datree documentation.
Setting the token at pipeline level, i.e. as an environment variable.
Passing the token directly into the task.
The task should run “datree test” on a user-specified file/directory (see relevant Datree documentation), and fail the pipeline if any of the files failed Datree’s policy check.
The task should be configurable with regards to the available CLI options. The supported options should be:
Flag
Alias
Values
Description
--output
-o
json, yaml, xml
Output the policy check results in the requested format
--output
-o
simple
Output the policy check results in simple text (without emoji or colors)
--schema-version
-s
e.g. "1.20.0"
Set Kubernetes version to validate against.Defaults to 1.18.0 (default "1.18.0")
--ignore-missing-schemas
N/A
N/A
Skip files with missing schemas instead of failing the schema validation check
--policy
-p
e.g. staging
Specify which policy to execute (by policy name)
--only-k8s-files
N/A
N/A
Skip all non-K8s files.Especially useful when scanning a dir with K8s and other config files: datree test *.yaml --only-k8s-files
The task should include an example workflow that uses it.
Once finished, publish the task to the Tekton hub.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please note that the installation link in the README will not work as the PR is not yet merged. You can use https://raw.githubusercontent.com/avinashupadhya99/catalog/add-datree-task/task/datree/0.1/datree.yaml to install
As part of our effort to support various plugins, we would like to create a Tekton Task that will enable users to run the Datree CLI as part of their Tekton pipeline/s.
Requirements:
Resources:
To get started with creating a Tekton Task, see the Tekton readme.
For all Datree-related resources, see the Datree documentation.
Specification:
datree test *.yaml --only-k8s-files
The text was updated successfully, but these errors were encountered: