1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
Commit Graph

808 Commits

Author SHA1 Message Date
Frerik Andriessen
8e94bc1872 Add 'plain' option to kube-linter output formatting 2021-10-06 17:31:30 +01:00
Yulia Gaponenko
dadd0289fa Add platforms annotation to golang-* tasks
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms was
added to the latest versions of the golang-* tasks.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-05 15:05:29 +01:00
Yulia Gaponenko
3b9cd7c6b1 Use multi-arch go-rest-api-test image
The image is used in many catalog tests. To run the tests on many
platforms, the image should be the multi-arch one (at this moment -
linux/amd64, linux/ppc64le, linux/s390x, linux/arm64).

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-09-29 14:06:28 +01:00
shaowenchen
00ddee3f3d feature: add rsync task
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-09-29 12:14:27 +01:00
Gijs van Dulmen
e9e1ecccfe Use secrets through volume mounts
Fix indenting and add readonly
2021-09-22 17:06:26 +01:00
Gijs van Dulmen
21b42ea35b Add multiple file support for Yq
Add version 0.2 with support for multiple files at once

Fix whitespaces

Add link to tests
2021-09-16 09:01:23 +01:00
MoOyeg
c6ddf0e2fa Add new task trivy-scanner
- Task provides a scanner that can be used in CI/CD pIpelines.
2021-09-15 10:05:23 +01:00
Matt Moore
062e57e9d8 Fix the README to reflect actual defaults.
Helping a user in Knative slack, I noticed that the documented default on TektonHub (and the catalog) was different from what was actually in the task.  This corrects the README.
2021-09-09 10:13:22 +01:00
Haibing Zhou
4bf19372b7 test/e2e: handle fixtures configmap volume correctly
When adding `fixtures` volume, we need to consider whether the task
already has a volumes section. If the volumes is already defined, then
we should add `fixtures` rather than replacing the whole volumes.
2021-09-01 07:06:14 +01:00
Pavel Litvyak
78b0497ab8 Add kaniko task 0.5
Task now uses --digest-file flag to create a results file with the
digest of a built image.
2021-08-31 12:39:13 +01:00
Yulia Gaponenko
04785f8a68 Bump skopeo image to v1.3.0 and buildah image to v1.18.0
quay.io/buildah/stable:v1.18.0 and quay.io/skopeo/stable:v1.3.0 are
multi-arch images, bumping them for buildah and skopeo-copy tasks will
allow to run the tasks on different architectures.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-08-31 08:10:13 +01:00
Ruben
287f52c9ef Add upload pypi 0.2 task 2021-08-31 07:54:20 +01:00
Frerik Andriessen
9580cd1ad6 Add gitlab-set-status task
It's basically the gitlab variant of the github-set-status task
2021-08-31 07:54:14 +01:00
Yulia Gaponenko
e96d209bf1 Add platforms annotation to send-to-* tasks
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms
is added to the latest versions of the send-to-* tasks.

Curl image used in the tasks is upgraded from 7.68.0 to 7.70.0 to use
multi-arch version.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-08-31 07:43:14 +01:00
Yulia Gaponenko
05b2246271 Add platforms annotation to kaniko task
Annotation about linux/amd64,linux/s390x,linux/ppc64le platforms was
added to the latest versions of the kaniko task, as well as information
which custom images to use for linux/s390x and linux/ppc64le platforms.
JQ_IMAGE parameter is introduced with default value from the existing
tas to be able to use custom image for non-Intel architecture.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-08-31 07:30:13 +01:00
Yulia Gaponenko
e3b2db4483 Add platforms annotation to github- tasks
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms
was added to the latest versions of the github-* tasks.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-08-30 09:05:12 +01:00
Gijs van Dulmen
e4dddc362e Add extra params
Quote all params
2021-08-25 07:45:11 +01:00
PuneetPunamiya
291017f747 Adds reference to add new categories to existing list
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-08-23 15:14:10 +01:00
Dan Williams
ed170b33d1 Fix typo in generate-build-id documentation 2021-08-23 11:40:10 +01:00
Frerik Andriessen
79f6b94c35 Add image and requirements_file params to black task
This provides more flexibility to the user for which exact version of
black should be used.
2021-08-20 08:11:09 +01:00
Frerik Andriessen
e547883f00 Add image and requirements_file params to mypy task
This provides more flexibility to the user for which exact version of
mypy should be used.
2021-08-19 07:20:09 +01:00
Gijs van Dulmen
6799d4577a Create first git-version task
Fix shell script

Remove newline

Remove resources

Fix whitespace

Get rid of newline

Add first lines again

Reformat

Add dashes

Update newlines

Small review comments

Add test

Fix workspace

Cleanup test

Fix for location of tools

Fix typo

Fix comment

Fixes for review comments

Adjust README as well
2021-08-16 09:13:08 +01:00
neilcar
3db22784c0 Minor update to README
Args are passed as a comma-separated array with no spaces.
2021-08-12 15:47:06 +01:00
neilcar
847fad48fe Minor update to ansible-runner README
Fixing second & third `tkn` examples to match the first.  Args are passed as an array.
2021-08-12 15:47:06 +01:00
Chmouel Boudjnah
85371d90e9 Add diff-task-version script
Using github.com/cli/cli it takes a PR URL as first argument and check
it out.

It will then detect automatically the old and new version and post a
comment to the PR with the diff and copy it in your clipboard (with
xclip on Linux and pbcopy on OSX)

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-08-12 14:23:06 +01:00
PuneetPunamiya
24405ad5a1 Minor fix in ansible-runner readme
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-08-07 13:48:20 +01:00
vinamra28
d32797a572 Fix setting of workingDir in the step
The workingDir was pointing to the wrong the workspace and thus the task
was failing so fixing that.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-08-04 11:01:18 +01:00
Frerik Andriessen
c9ca4bc2f2 Add flake8 task
It's a word-for-word copy of the pylint-0.2 task.
2021-07-26 19:45:08 +01:00
Christie Wilson
68e44c629c Recommend versioning script instead of using configmap 📝
When discussing some potential ways a Task could be compromised,
@afrittoli mentioned that if a Task refers to some remote source for a
script, there is the potential for that source to be modified and run
something malicious inside a Task. As he described this, he mentioned
that our catalog recommends putting scripts into configmaps, which I was
surprised to see. A script inside a configmap does have this potential
attack vector (though you'd have to have write access to the configmap
to pull it off) but I'm actually a bit more concerned that this isn't
a great solution for maintaining scripts over time. Not to mention that
I'm not how we would support this in the catalog (we'd have to start
supporting applying and versioning ConfigMaps alongside the Tasks that
reference them).

So this commit changes the recommendation to recommend 'graduating'
large scripts from script to tools and treating them like you'd treat
other code. This is still not a fantastic solution as it requires you to
maintain and publish your own images but I think it's a step in the
right direction (and if it helps, I could also see a world where we
support storing and publishing those images via the catalog as well -
though I'm pretty sure @vdemeester disagrees with me here).
2021-07-26 16:23:08 +01:00
Yulia Gaponenko
b21ad0b3fc Add platforms annotation to several tasks
Annotation about `linux/amd64`,`linux/s390x`,`linux/ppc64le` platforms
was added to all versions of the  tkn, git-cli, pull-request
and kubeconfig-creator tasks.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-07-26 15:09:08 +01:00
PuneetPunamiya
af28e02840 Fix Catlin error by adding tags to the image
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-07-26 13:15:08 +01:00
PuneetPunamiya
5a3e5f630f Adds category field as an annotation as tekton.dev/categories
- Initially all tags were mapped to categories in Hub,
     for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml,
     so whenever a new tag was added in a task it was mapped to a category called `others`.
     Hence before every release we had to manually map these new tags to some category,
     hence after the discussion in Catalog and Hub WG, a proposal was created for adding
     a category as an annotation.

   - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-07-26 13:15:08 +01:00
Yulia Gaponenko
3e935e3472 Add platforms information for helm-upgrade-from-repo and
helm-upgrade-from-source tasks

As well as update helm image to use multi-arch version of it.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-07-23 09:24:07 +01:00
Chmouel Boudjnah
536668a73c Add goreleaser task 0.2
Allow configure the image name and default to latest,

The latest goreleaser version probably break the old version so bumping
the task version here and allow to override if the user wants it with
params.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-07-22 04:29:06 +01:00
Yulia Gaponenko
b2e98c4dd1 Add platforms information for maven and jib-maven tasks
As well as document multi-arch maven image for linux/s390x and
linux/ppc64le platforms.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-07-21 12:12:06 +01:00
Jerop
9f255314b3 Golang Fuzz
This task is a Golang Tekton Task to fuzz Go projects

It uses the native Go Fuzzing Beta for dynamic analysis to find issues
in your code.

The release announcement https://blog.golang.org/fuzz-beta notes that:
"Fuzzing is a type of automated testing which continuously manipulates
inputs to a program to find issues such as panics or bugs. These
semi-random data mutations can discover new code coverage that existing
unit tests may miss, and uncover edge case bugs which would otherwise
go unnoticed. Since fuzzing can reach these edge cases, fuzz testing is
particularly valuable for finding security exploits and vulnerabilities"
2021-07-19 14:08:06 +01:00
Priti Desai
1c210391f7 updating tekton pipeline
Tekton pipeline just released 0.26, updating catalog to use the
latest pipeline release.
2021-07-13 03:33:03 +01:00
vinamra28
f5d44bdb7f Add openshift-client task 0.2
The task requires min pipelines version 0.17.0 as it uses two optional
workspaces. First workspace is for passing the manifests which we want
to apply on the cluster and second workspace can be used to mount the
kubeconfig file if in case we want to run the oc command on another
cluster.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-07-05 18:49:08 +01:00
vinamra28
b781a300c0 Fix the README of openshift-client
The README was showing that the task uses the input resource of
cluster-type but the resource being used was of git-type so fixing that.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-07-05 18:49:08 +01:00
Javier Romero
ccfc9c5a9e Add pipeline/buildpacks/0.1
These changes introduce the Buildpacks Pipeline. This pipeline
builds source into a container image using Cloud Native Buildpacks.
To do that, it uses builders to run buildpacks against your application source.

It relies on git-clone, buildpacks, and buildpacks-phases tasks to perform
it's tasks.

Signed-off-by: Javier Romero <rjavier@vmware.com>
2021-07-03 09:49:07 +01:00
vinamra28
bf4d39c16f Update roadmap for 2021 2021-07-03 08:51:07 +01:00
Haibing Zhou
7462fb2abb github-set-status: use secret volume for github token
The `github-set-status` task now uses volumeMount to read github token.
The volume approach is prefered over environment variable.
2021-07-02 09:17:07 +01:00
Gijs van Dulmen
e88a331e0a Add 0.2 git-cli task after git-clone 0.4 example
Remove trailing spaces

Improve README

Add SSH creds docs
2021-07-01 15:18:06 +01:00
Pascal Gulikers
1887c0bc56 Fixed source path bug when not set at default (.) 2021-07-01 12:36:06 +01:00
Yulia Gaponenko
15caec9b2d Add documentation about platform information for resources
Following TEP 70, tekton.dev/platforms annotation can be used to
specify on which platforms the resource can be run.

- add best practices for platform information in the recommendations.md
- add example of usage for tekton.dev/platforms annotation

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-07-01 10:02:06 +01:00
Michał Czeraszkiewicz
84906df9a3 docs: typo in script title 2021-06-25 07:33:03 +01:00
urvashigupta7
54735e59c3 Add task for Kube-Linter Tool
Kube-linter is a tool by stackrox to identify misconfigurations in kubernetes objects.
2021-06-24 10:43:03 +01:00
Jerop Kipruto
48475388d3 Update catalog e2e test runner to use Pipelines v0.25.0
Pipelines just released v0.25.0.

This commit updates the e2e test runner to use the new version
of Pipelines when testing catalog entries.
2021-06-23 11:02:03 +01:00
vinamra28
d4798eb701 Fix orka-* task as per pipelines 0.24+
Add a parameter through which we can set the `HOME` env variable which
if not provided will default to `/tekton/home`. Also set the default
`workingDir` as `/workspace`.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00
vinamra28
d517969521 Fix git-clone task as per pipelines 0.24+
git-clone 0.1:
Add a parameter through which we can set the `HOME` env variable which
if not provided will default to `/tekton/home`

git-clone 0.4:
Changed the default value of userHome param from `/root` to
`/tekton/home` as it was not matching the README.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00