1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
Commit Graph

614 Commits

Author SHA1 Message Date
Zbynek Roubalik
1abac6b453 Buildpacks: remove securityContext.privileged and add dockerconfig workspace
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-04-01 12:22:24 +01:00
Andrea Frittoli
f400e99456 gcs-upload v0.2 do not delete missing files by default
The gcs-upload task v0.1, when dealing with folders, uses the "-d"
option by default, which deletes remote files by default. This is
a relatively dangerous choice of default, and it's safer to make
that as an opt-in, as it may result in deletion of a lot of remote
files by accident.

V0.2 has a new parameter "deleteExtraFiles" which corresponds to
gsutil "-d" flag. deleteExtraFiles defaults to false, making the
default behaviour of the task different from v0.1.

V0.2 replaces parameters in the script with environment variables
for security as recommended in the catalog best practices.

The cloud-sdk image version has been updated to 390.0.0-slim which
is newer, ~60% smaller than the current image and includes gsutil.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2022-03-31 14:44:24 +01:00
Andrea Frittoli
7eb56668e4 Copy gcs-uload 0.1 to 0.2
Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2022-03-31 14:44:24 +01:00
jacco.mook@alliander.com
a5afb97831 Bump tkn task image version 2022-03-31 14:31:25 +01:00
Brad Beck
78b59ba38e Update jib-gradle task to be chains compatible 2022-03-23 19:37:21 +00:00
Brad Beck
723de46553 Copy task jib-gradle from 0.3 to 0.4 2022-03-23 19:37:21 +00:00
hkadiri
5194320ece Parameterizing orka-image name 2022-03-21 06:56:21 +00:00
Andreas Herz
30ca1efa8c Adapt README.md to the real used builderah version quay.io/buildah/stable:v1.18.0
change README from `quay.io/buildah/stable:v1.17.0` to the real used version `quay.io/buildah/stable:v1.18.0`
2022-03-15 17:47:18 +00:00
Sebastian Schimpfhauser
c4bd6401be Fix API prefix path in github-add-comment task
The parameter API_PATH_PREFIX has not been used in the script.
Because of that the task did not work for GitHub Enterprise Server.
2022-03-15 09:16:18 +00:00
Andreas Herz
edca0781e7 wrong parameter name SCRIPT. using script instead 2022-03-14 17:54:18 +00:00
Gyorgy Hrabovszki
2a487ca565 fix: Allow multi-line description for PRs. 2022-03-14 17:45:18 +00:00
Andreas Herz
6f32083643 use the correct task name
In the documentation the wrong task name is used. 
According to the definition it must be `kubernetes-actions` and not `kubectl-actions`
2022-03-14 11:29:18 +00:00
joeyt
4e75194c5a Update the metadata 2022-03-14 07:10:18 +00:00
joeyt
8e59b50e15 Fix version in apply 2022-03-14 07:10:18 +00:00
joeyt
44b5707222 Update gcloud image, fix documentation
Currently the readme says the default `gcloud-image` uses the `slim` tag.  However, doing a `gcloud artifacts` command revealed gcloud was pinned to an old version.

So, updating the gcloud image to the latest, and correctly document that it has been pinned to a specific version
2022-03-14 07:10:18 +00:00
joeyt
c2e26086e5 Copy task gcloud 0.1 -> 0.2 2022-03-14 07:10:18 +00:00
Andreas Herz
3370574973 use the version of the current task for the installation command 2022-03-14 06:58:17 +00:00
Parth Patel
5fa4d13a4d added chains compliant kaniko task 2022-03-14 05:48:17 +00:00
Ruben van Kruistum
aeb957601c Change sonarqube source workspace name 2022-02-16 11:53:08 +00:00
Jorge Andrada Prieto
6767a97b1b Hadolint improve ignore rules 2022-02-16 09:39:08 +00:00
vinamra28
3db4ed2018 Update tests to use another repo in golang-test
Currently golang-test Task is using tektoncd/cli repo to test the task
golang-test but that's too flaky so changing that to use another repo.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2022-02-14 10:22:07 +00:00
Gijs van Dulmen
4ea4112728 Fix bug with incorrect param
Add V1 of gitea set status task

Make testable and add test

Make https default
2022-02-10 06:04:07 +00:00
Kleber Cabral
b3f028ad17 Fix random Usage Sample for PWSH
Fix random Usage Sample for PWSH
2022-02-10 01:10:07 +00:00
Neil Carpenter
5956edb120 Adding ACS image-scan and image-check
Add README, samples

Add image check task, fix lint issues

Fix READMEs

Add spec description

Fix task name

Fix task name in sample

Convert ClusterTask to Task

Resolve typo in parameters

Enclose code in code block

Move insecure-skip-tls-verify to parameter

Address Catlin output

Author:    Neil Carpenter <me@neilcar.com>
Date:      Fri Jul 16 11:46:48 2021 -0400

Initial commit of stackrox-image-check and stackrox-image-scan

Initial commit

Add README, samples

Add image check task, fix lint issues

Fix READMEs

Add spec description

Enclose code in code block

Updated Changes as requested by review - Added OWNERS file - Changed Image FQDN - Rebased git history to make linear - Linted

Update owners file with spaces

Empty Commit - Refresh for update on owner update

Updated PR: 1 Fixed Comment - https://github.com/tektoncd/catalog/pull/834#discussion_r731073440 2 Renamed stackrox-image-check.yml to yaml

Co-Authored-By: neilcar <926748+neilcar@users.noreply.github.com>
2022-02-03 18:45:06 +00:00
Frerik Andriessen
f503f48cd6 Fix typo in script shebang of yq task 2022-02-03 15:25:05 +00:00
Scott
dc8b8523c7 Update e2e test script to Pipelines v0.32.0
Prior to this commit we were using Pipelines 0.28 for running e2e tests
in the Catalog.

This commit updates the pipelines version used during testing to 0.32.0,
which was released today.

After making this change one of the steps in an Orka Task is now failing
due to a naming conflict. This commit also renames the step to work
around the issue.
2022-02-03 14:41:05 +00:00
vinamra28
59420aee67 Fix upload-pypi task version 0.2
`upload-pypi` Task version 0.2 is failing during nightly tests and
reason for the failure was that the image digest was inaccessible.

Updated the image with the tag `v0.0.2`

Signed-off-by: vinamra28 <vinjain@redhat.com>
2022-02-03 10:44:05 +00:00
garethahealy
3422694b5c added 0.1 of pluto task 2022-02-03 07:35:05 +00:00
Samuel MARTIN MORO
f4c8ae3509 Adds dockerslim-build sample task & test 2022-02-03 06:30:06 +00:00
Jann Fischer
554e82d452 Update task argocd-task-sync-and-wait to v0.2
This changes the container registry where Argo CD image is pulled from
docker.io to quay.io (the project deprecated publishing on Docker Hub
since a few releases, and will stop publishing new images to there
soon). Also bumps the default version used by the task to the latest
stable release.

Signed-off-by: Jann Fischer <jfischer@redhat.com>
2022-02-03 04:09:05 +00:00
Jann Fischer
44299341e1 Deprecate version 0.1 of argocd-task-sync-and-wait
Since much time has passed since the Argo CD release v1.0.2 and meanwhile the
registry for official upstream containers has changed to quay.io, the version
0.1 of this task is being deprecated in favor of its new 0.2 version which
will adapt to more reasonable default settings.

Signed-off-by: Jann Fischer <jfischer@redhat.com>
2022-02-03 04:09:05 +00:00
vinamra28
b85c7c2184 Add kythe-go version 0.2
The following version of kythe-go task contains the latest changes in order
to make it compatible with the latest kythe binary. Added a few
environment variables and mountPath which contains go.mod

Signed-off-by: vinamra28 <vinjain@redhat.com>
2022-01-18 14:33:05 +00:00
vinamra28
8bd5deaa7b Deprecate kythe-go version 0.1
Kythe-go version 0.1 is being deprecated as it's incompatible with
latest versions of golang and the tests are also failing.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2022-01-18 14:33:05 +00:00
Jorge Andrada Prieto
27472bf750 Add asciidoctor Task
Asciidoctor text processor task
2022-01-13 15:36:04 +00:00
Ruben van Kruistum
04e1310fec Remove quotes from args param in pytest script
The quotation marks are breaking the proper execution of args
2022-01-13 12:46:03 +00:00
Frerik Andriessen
578e1b9fe7 Add Basic Auth option to github-add-comment 2022-01-12 15:12:02 +00:00
Frerik Andriessen
69781086c8 Make yq task fail if one of the replacements fails 2022-01-12 06:10:02 +00:00
Frerik Andriessen
25d9a7669c Add image param to yq task 2022-01-12 06:10:02 +00:00
Jorge Andrada Prieto
83c2016c6a Fix Readme hadolint task 0.1
Fix Readme hadolint task 0.1, no compatible tags with tekton catalog web
2022-01-10 09:13:01 +00:00
Jorge Andrada Prieto
837a8f6ece Add hadolint task
Dockerfile linter task


fix shellcheck


test lint


fix SC2155


fix SC2155


add set -e


fix SC2155


ignore rule value


fix test


fix empty lines


Clean code and digest image

Resolved @vinamra28 suggestions
Digest and image tag
2022-01-08 06:45:01 +00:00
Scott
ae02f26988 Fix small issue with gcs-download README
Prior to this commit an example in the readme for gcs-download
referenced a Task that didn't exist.

This commit updates the broken taskRef to point to the correctly
named Task.
2022-01-06 10:23:00 +00:00
Guillaume
77b3f9a16b Smaller default image for github-set-status
The default image for the github-set-status is more
than 800MB. The python code actually run in this task
is small and used only the stdlib. A smaller image
would works just as well.

The new default is python-alpine (45MB), which is the
smallest python image possible. It is now configurable.
2022-01-06 10:15:00 +00:00
Jörg Heyduk
a5a1fe17be Correct quoting in sample file
Correct the quoting in the patch. Now the variables are included
in the patch.

Fixes #887
2022-01-06 07:04:00 +00:00
ec2ainun
4f365ec668 feat: discord messaging
Update task/send-to-webhook-discord/0.1/README.md

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

Update task/send-to-webhook-discord/0.1/README.md

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

fix: trailing spaces

fix: add default message and avatar

Update task/send-to-webhook-discord/0.1/send-to-webhook-discord.yaml

Update task/send-to-webhook-discord/0.1/README.md
2021-12-21 11:26:55 +00:00
Chris
a768679711 Added comments reguarding id_rsa as default filename for private key 2021-12-20 17:05:55 +00:00
Ameya Lokare
ea4fa15b5f Don't omit params.context in source path construction
Looks like the `context` param is never used in 0.2 which fails builds that don't have the golang sources at the workspace root. Seems like a regression from 0.1.
2021-12-20 16:49:55 +00:00
jacco.mook@alliander.com
c4629f15ca Add extra golang-build env parameters 2021-12-14 15:26:54 +00:00
Yulia Gaponenko
cebb548d56 Add DOCKER_CONFIG env variable to jib-gradle
Specification of Docker config location allows to point jib tool to the
Docker config file with registry auth information, provided by Tekton
via
https://github.com/tektoncd/pipeline/blob/main/docs/auth.md#configuring-docker-authentication-for-docker .

Without this fix jib is not able to find credentialss for private registries or
registries will limited pulls and build fails.

Fix is provided for all 3 existing versions of the task.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-12-08 12:15:52 +00:00
Sim Zacks
ec66862871 remove blanks from receivers_email
The recipients of the email are extracted from a variable using the
split() function on a blank space (' '). If there are additional blanks,
either before, after or in the middle of the receivers_email variable the
sendmail function will cause an exception. This patch makes sure that blanks
won't cause the exception.
2021-12-07 10:32:51 +00:00
Chmouel Boudjnah
03344fec88 bump goreleaser to latest
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-12-03 16:18:50 +00:00
rvankruistum
020efea5dd Add new jib-gradle version with optional arguments
Update task/jib-gradle/0.3/README.md

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

Update task/jib-gradle/0.3/jib-gradle.yaml

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

Fix linting errors

Fix more linting errors
2021-11-25 14:00:46 +00:00
Piyush Garg
6a6f3543fa Directory not handled in digest-to-results step
This will fix the issue of jib-maven task not passing digest to results
if the clone has happened in sub-directory and directory passed to
jib-maven task

It is because the directory param is not handled in path creation for digest

It will not break the existing the behaviour but fixing the issue for directory scenario
so doing the change in latest version
2021-11-22 09:09:45 +00:00
rvankruistum
df2232761a add optional flag to ecr-login workspace 2021-11-19 12:43:44 +00:00
Andrea Frittoli
367c3c1eea [pytest] Fix issue when no args are passed
When no args are passed, we run pytest "" <path> which does not
work as expected. Only pass the args to pytest when there are
some defined.

Fixes #864

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-11-19 12:24:44 +00:00
Chmouel Boudjnah
6896d86524 git-clone: support mounting custom CAs for https
Add a optional workspace for custom CAs. This will use pass down the optional
workspace path to git's GIT_SSL_CAPATH env variable (and subsequently to
libcurl).

Closes #660

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-11-17 13:41:43 +00:00
Chmouel Boudjnah
40fde9ae46 Copy git-clone version from 0.4 to 0.5
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-11-17 13:41:43 +00:00
Piyush Garg
0ca41d373d Add home env to kn-apply task
This will add home env with value /tekton/home to the kn-apply task
as it throws warning sometime like

2021/11/03 12:18:36 warning: unsuccessful cred copy: .docker from
/tekton/creds to /: unable to create destination directory:
mkdir /.docker: permission denied

This env does not break the task so adding it in same version
2021-11-17 12:08:44 +00:00
Tobias Larscheid
cffffa1d27 add additional test for skip logic 2021-11-17 11:36:43 +00:00
Tobias Larscheid
b377e32fa2 Quote param as suggested by static analysis
Co-authored-by: Chmouel Boudjnah <chmouel@chmouel.com>
2021-11-17 11:36:43 +00:00
Tobias Larscheid
ac3458c946 add param to allow skipping push step 2021-11-17 11:36:43 +00:00
Yulia Gaponenko
0716b24508 Add platforms annotation to pylint 0.1 task
Annotation about linux/amd64, linux/s390x, linux/arm64 and linux/ppc64le
platforms is added to the 0.1 version of the pylint task.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-11-17 10:26:44 +00:00
Christoffer Vig
d3222e8a89 fix: https://github.com/tektoncd/catalog/issues/768
makes sonar-project.properties editable when mounted from secret
2021-11-12 16:14:42 +00:00
Yulia Gaponenko
f4708d478e Add linux/amd64 platform annotation to the rest of the tasks
At this moment all tasks which can be executed on linux/s390x or
linux/ppc64le are tested and labelled accordingly.
The rest of the tasks can be labelled as `linux/amd64`, which
is default platform and where tasks are already tested via
default PR testing cycle.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-29 17:08:38 +01:00
Yulia Gaponenko
f8b0e19da8 Add platforms annotation to several tasks
Annotation about linux/amd64,linux/s390x,linux/ppc64le and linux/arm64
platforms was added to the latest versions of curl, kn, kn-apply,
sendmail, and generate-build-id tasks.

Annotation about linux/amd64,linux/s390x,linux/ppc64le
platforms was added to the latest version of jib-gradle task.

For several tasks shas of the images were changed from amd64 specific
ones to multi-arch ones.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-28 10:17:37 +01:00
Yulia Gaponenko
22983dbc28 Change platforms annotation to git-* tasks
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms
was added to the latest versions of the git-batch-merge,
git-clone, git-rebase tasks.

Platforms annotation was changed for git-version task, leaving only
linux/amd64.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-27 16:13:36 +01:00
rvankruistum
03dd5e48ed Add Robot Framework Task 2021-10-26 11:12:37 +01:00
Frerik Andriessen
0a555f3cbd Make github-set-status fail if it was unsuccessful 2021-10-21 18:48:35 +01:00
palakagrawaljk
1357f855e0 fix buildpack examples
Signed-off-by: palakagrawaljk <palakagrawaljk@gmail.com>
2021-10-20 17:26:34 +01:00
Chmouel Boudjnah
702da14c17 git-clone Add documentation on short lived token
add a section in Readme about short lived tokens that can be used in
lieu of password with a note about bitbucket server workaround.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-10-19 16:55:34 +01:00
Yulia Gaponenko
2bae9d1479 Add platforms annotation to several tasks
Annotation about linux/amd64,linux/s390x,linux/ppc64le platforms was added
to the latest versions of the npm, wget, write-file, tekton-catalog-publish,
pytest, python-coverage tasks.
Container image SHAs were updated to use the latest versions with
multi-arch support for npm and wget tasks.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-18 15:35:34 +01:00
Frerik Andriessen
30f6b1aebf Fail github-add-comment task if it was unsuccessful 2021-10-18 10:32:34 +01:00
Frerik Andriessen
9e49b16100 Fail github-add-gist task if it was unsuccessful 2021-10-16 05:31:33 +01:00
Frerik Andriessen
dc81350f1b Make github-open-pr fail if HTTP POST was unsuccessful 2021-10-11 16:27:32 +01:00
Frerik Andriessen
e2ac633944 Sets the user_home default to /root, otherwise ssh-credentials don't work
Other small adjustments:
* Made input workspace optional
* Added some explanation on how to use the input workspace
* Included a reference for .ssh directory setup
2021-10-07 07:03:30 +01:00
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
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
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
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
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
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
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
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
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
vinamra28
09da51c6ae Fix buildapacks-phases 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`

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00
vinamra28
3247e6ac61 Fix ansible runner 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`

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00
Priti Desai
79088e1e3b fix argocd sync and wait task
logining in from one container and having sync and wait run in a
separate containers does not work. Authenticate once and reuse the connection
across the containers in a pod is not supported. Sync and wait fails with
authentication error. Either we login at each step or collapse
sync and wait along with the login step. Or we could authenticate once and
find a way to how to reuse the same connection across the containers.

For now, combining everything into a single step.
2021-06-23 00:35:02 +01:00
Gijs van Dulmen
177a749088 Add Github Open PR Task
Fix trailing space

Fix version obviously

Fix text typo

Add Test for Github Open PR

Fix hosts

Update test fixture

Add better and more tests

Use localhost

Fix HTTP and HTTPS

Fix typo

Add PR number and URL results

Fix tests and use correct URL

Remove duplicate line

Set correct URL over here as well
2021-06-21 16:45:02 +01:00
Gijs van Dulmen
f6b4174a18 Add YQ Task including tests
Setup correct structure

Fix review comments

Fixes after review comments
2021-06-15 13:55:59 +01:00
Gijs van Dulmen
94ddad6e32 Add option to use Basic Auth
Add docs in README

Fix lint errors in Python code

Adding README improvements for Basic authentication

Improve README based on review
2021-06-14 14:56:59 +01:00
urvashigupta7
5a251db8c7 change config file url for gitleaks 2021-06-14 14:29:59 +01:00
Piyush Garg
e77ba9ed85 Bump jib-maven task to 0.4 to fix certs mount path
This will add a new version 0.4 in jib-maven task which
have only one change of different mounth rather than /etc/ssl/certs
as mounting at that location is overidding the default certs of
the image. This will make the certs to mount at different path
/tekton-custom-certs
2021-06-09 12:18:57 +01:00
urvashigupta7
13fc9dab72 Add Task For Gitleaks Tool
Gitleaks is a sast tool for detecting hardcoded secrets like passwords, api keys, and tokens in your code
2021-06-09 12:08:57 +01:00
Scott
0c72fe24c2 Add nonroot user support and workspace credentials to git-clone
This commit introduces a 0.4 version of git-clone, fixing several
problems with the 0.3 git-clone Task:

1. Credentials in 0.3 could not be passed directly to the Task via
a Workspace.

2. There was no support for running as a non-root user.

This commit introduces a new version of git-clone that fixes both
of these issues. Credentials (either basic-auth or ssh-directory)
can now be supplied directly using a Secret workspace. A nonroot
user is provided with UID 65532 that can clone repos without
requiring root permissions.
2021-06-08 17:07:57 +01:00
vinamra28
4436e012b3 Fix getting comment with multi Lines
This use python multi string when getting the comment
params so we don't bug out on multi lines comments.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-07 13:45:56 +01:00
Gijs van Dulmen
2c175084e4 Add extra possibility for username and emoij to make it more Tekton Like
Fix linting and improve

Fix quotes

Add parameter docs
2021-06-05 11:28:56 +01:00
Chmouel Boudjnah
63fd747f0e Allow to override GO caching environment variable
Allow overriding the GO cache, GO mod caching and golangci-lint caching.

Optimize golang-build and golang-test to not do a fulll copy of the source
inside the GOPATH if we have a go.mod in source root directory.

Bumped task since we add a bunch into it.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-06-02 12:14:54 +01:00
Konrad Scherer
ae319bc988 Support multiple EXTRA_ARGS by using array type
Signed-off-by: Konrad Scherer <kmscherer@gmail.com>
2021-06-02 07:26:54 +01:00
Chmouel Boudjnah
909ac49c05 Fix getting comment with multi Lines
Fixes issue #731

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-06-02 07:10:54 +01:00
Gijs van Dulmen
149beacbf5 Add Teams Task and README
Update title with copy paste err

Add quotes to get rid of lint issues

Fix some more issues with shell linting

Linting - Add double quotes over here as well

Setup the incoming webhook as a secret due to it's sensitivity
2021-06-01 17:31:54 +01:00
Chmouel Boudjnah
fc29455532 github-app-token allow github api url to be defined
* Allow defining the github api url
* Handle Exception better by showing the error message.
  (i.e: in case if ntp is not syncronized the jwt token would not be issued)
2021-05-26 12:54:52 +01:00
pratap0007
f411787b89 Improves url links in the README
Few task's README contains some url links which had
invalid directory path and was pointing to a invalid page

Signed-off-by: Shiv Verma <shverma@redhat.com>
2021-05-24 17:47:52 +01:00
Chanseok Oh
ee978374c0 Update OWNERS 2021-05-17 13:50:48 +01:00
Chanseok Oh
10c5841b4f Update OWNERS 2021-05-17 13:50:48 +01:00
vinamra28
c88c0ac58b Remove permission check in write-file task
In write-file task's tests we are checking whether file permission is
equal to `--w--wxr-T`. These permissions may vary depending on rbac
enforced cluster. Example on some cluster we can get the value as
`-rw-rwxr-T` thus failing the test.

In this commit I am removing the `grep -- '--w--wxr-T'` so that the
tests doesn't fail on other clusters.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-05-11 08:59:45 +01:00
Chmouel Boudjnah
42c4b85788 Update golangci-lint to latest
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-05-10 10:36:45 +01:00
Costel Moraru
eeb97337d9 Removing the inputs param prefix according to the v1beta1 specs 2021-05-07 09:26:43 +01:00
Andrea Frittoli
6358e174e6 [tekton-catalog-publish] Bind the dockerconfig workspace
When the optional dockerconfig workspace is set, set the
DOCKER_CONFIG env variable accordingly.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-05-04 15:11:42 +01:00
Andrea Frittoli
9095458f98 [tekton-publish-catalog] Fix syntax of find command
The syntax of the find command was not correct, and the error was not
caught by CI because of the missing "set -o pipefail".

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-05-04 14:44:42 +01:00
Andrea Frittoli
1160467eb9 Add a task to publish a catalog as bundles
Add a new task that uses tkn bundle to publish a Tekton catalog as
bundles to a container registry. Each task corresponds to a dedicated
bundle, which task versions available as tags.

Optionally, bundles are tagged with an extra tag provided as an input
parameter.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-05-04 12:01:42 +01:00
Bittrance
64d1674661 correct write-file params descriptions. 2021-05-03 04:45:42 +01:00
Bittrance
832a58bfa9 write-file now has established tag "generic" 2021-05-03 04:45:42 +01:00
Bittrance
c63533b90c Fix alpine 3.12 with sha256
Missed this when trying to adhere to recommendations.md.
2021-05-03 04:45:42 +01:00
Bittrance
783bfca070 Change write-file permissions -> mode and follow recommendations.md 2021-05-03 04:45:42 +01:00
Bittrance
58d5df4ddc Add Task to write a file onto a workspace
Add a catalog task to write a parameter out as a file, creating
intermediate directories and setting permissions as necessary. While it
is possible today to have a workspace that is a mounted config map
variable, that provides limited support for expanding parameters into
the file (i.e. the [replace-tokens](https://hub.tekton.dev/tekton/task/replace-tokens) task).
Ultimately, my argument for adopting this task into the catalog is that
I believe others will also look for a file-writing task and their
experience of Tekton will be better if they find one.
2021-05-03 04:45:42 +01:00
Scott
046fb8addb Pass git-clone Params as EnvVars Instead
Previously we passed params directly into the `script` block of
the clone step. Because Pipelines doesn't escape variable values
when interpolating them the behaviour of the task could be changed
by the contents of a param.

This commit changes the way params are provided to the script;
instead of being interpolated directly they are converted first
into environment variables and accessed through shell's `${}`
construct.
2021-04-28 17:25:40 +01:00
Siegfried Ehret
bc72cb8ecd Fix typo in sendmail readme 2021-04-28 11:20:40 +01:00
PuneetPunamiya
8966eb7964 Bump tkn image to 0.18
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-04-28 11:11:40 +01:00
Chmouel Boudjnah
0a59b634f7 Add github app token 0.2
Added a new params to allow getting the application_id from the secrets
workspace, still allowing as params directly if user would like to use
this instead.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-04-27 12:34:08 +01:00
savita ashture
94aede7853 Revert "Add privileged permission to jib-maven task"
This reverts commit 1920b1e36c.
2021-04-27 12:15:09 +01:00
Billy Lynch
46e0bb02bc Add kind catalog task.
This adds support for running kind within Tekton. This primarily configures
the Docker-in-Docker environment necessary to bring up kind clusters.

Users should invoke kind in their own runtime image to create / modify
clusters. See https://github.com/tektoncd/plumbing/pull/821 for an
example runtime image.
2021-04-23 15:12:08 +01:00
Piyush Garg
fdd4499dd3 Use bash instead on sh in jib-maven
This will fix the issue of task failing with some MAVEN_IMAGE
like 3.6.3-adoptopenjdk-11 etc because of [[ not found
2021-04-22 12:09:07 +01:00
jparsai
6bd8c3165b Publish CRDA task into Tekton Hub 2021-04-22 11:06:07 +01:00
savitaashture
1920b1e36c Add privileged permission to jib-maven task 2021-04-21 19:35:08 +01:00
Billy Lynch
8db4239324 Add comments sensative looking material for usage.
This change simply adds comments to secrets and other password/key
material that are used in testing. The usage of these secrets is okay
(they're all either dummy tokens or auth material set for local
instances spun up during tests), but adding comments to provide some
background for anyone browsing the code.

Also redacted a cert used in the buildah sample. While this was
safe since it was generated specifically for the sample, there isn't a strict
need for a valid cert here, so we can replace this with something that looks
cert-like instead.
2021-04-15 18:37:41 +01:00
Chmouel Boudjnah
967d937099 Add pr checkout sample for git-clone task
Add a sample to demonstrate how to checkout a PR directly with
git-clone.

Closes #694

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-04-14 12:52:41 +01:00
Billy Lynch
6e9101f41e jenkins: Add set +x to script.
This is a follow up to https://github.com/tektoncd/catalog/pull/696.
2021-04-12 22:10:40 +01:00
Billy Lynch
6929f039f9 Remove extra set -x commands in e2e tests.
Aims to make e2e tests consistent across projects.
2021-04-12 21:50:40 +01:00
Andrea Frittoli
622edc8169 Support Kaniko authentication via workspace
Add an optional workspace to the kaniko task that can be used to
pass container registry credentials to the kaniko task.
This mechanism replaces the service account based one. The change
is not backward compatible, however it is not easily possible to
support both auth mechanism, since the service account one
requires setting DOCKER_CONFIG, which breaks the workspace based
one. Workspace are preferrable since they are available in all
deployments, while Tekton's built-in auth is only available when
it's enabled. While enabled is the default setting for now, it may
change in future, and it may already be disabled in various
deployments, where the kaniko task is today effecively unusable.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-04-09 13:15:49 +01:00
Piyush Garg
c2547bd722 Refactor in e2e script and pre-apply func
Created a function to run secure sidecar registry with cert
and calling that function from all tests to remove duplication
2021-04-08 14:19:48 +01:00
Piyush Garg
06b043155f Add jib-maven 0.3 with certficate support for registry
This will add jib-maven 0.3 version with support for providing cert file
to talk to insecure registry

Fix #686
2021-04-08 14:19:48 +01:00
Mahdi
280806165c Fix kn-deployer.yaml path. 2021-04-06 07:54:48 +01:00
Sunghoon Kang
45742091e5 Add github-create-deployment-status task
This task allows to update a status of GitHub deployment from a
Tekton pipeline. This task can be used while deploying or
after deployed (with `finally`) to show status at
GitHub deployment status tab.

Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
2021-04-02 17:22:46 +01:00
Sunghoon Kang
686f9ca027 Bump github-create-deployment version to 0.2
- Add API_PATH_PREFIX to github-create-deployment task parameter

GitHub enterprise exposes API using path (e.g. `/api/v3`)
instead of host. `github-create-deployment/0.1` will fail on this case,
since `HTTPSConnection` does not allow path included host.

Co-authored-by: Vinamra Jain <vinjain@redhat.com>
Signed-off-by: Sunghoon Kang <hoon@linecorp.com>
2021-03-29 14:34:45 +01:00
Andrea Frittoli
67fde32738 Support response files in fixtures
Extend to test logic to be able to load the fixture reponse from a
file, so that we don't have to inline a long JSON doc into the fixture
config YAML. This is achieved by creating a config map with all the
files in the fixtures folder, and mounting that configmap as a volume
to the sidecar.

This allows improving the test for the github-add-comment task v0.4

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-03-29 09:41:45 +01:00
Andrea Frittoli
66df9ddf53 Add support for comment update to github comment task
Enhance the GitHub add comment task with the ability to update
a comment if applicable. This achieved by tagging comments with
and invisible (HTML comment) unique text, and looking for that
text to identify a comment.

This does not use the nodeid because that is generated by GitHub
and it would require task users to store known node IDs somewhere
across task executions.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-03-29 09:41:45 +01:00
agiorgi
52b1848b00 Fixed message encoding to support non-ascii chars
Non-ascii characters would cause the task to fail to send the email because by default smtplib tries to encode the message in ascii. Adding the encode('utf-8') to the email body fixes the issue
2021-03-29 09:28:45 +01:00
Andrea Frittoli
cafeb289fa Task to request reviewers on a GitHub PR
Add a new task that allows to request reviewers on a GitHub PR.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-03-26 10:22:44 +00:00
Javier Romero
aba44d4ee1 Add task/buildpacks/0.3
- Add `APP_IMAGE_DIGEST` result
- Upgrade to Platform API 0.4
- Add support for build-time environment variables
- Replace use of PipelineResources with Params

Signed-off-by: Javier Romero <rjavier@vmware.com>
2021-03-22 17:34:45 +00:00
Javier Romero
397d0790f9 Add task/buildpacks-phases/0.2
- Add `APP_IMAGE_DIGEST` result
- Upgrade to Platform API 0.4
- Add parameter to configure the `LIFECYCLE_IMAGE`
- Add support for build-time environment variables
- Replace use of PipelineResources with Params

Signed-off-by: Javier Romero <rjavier@vmware.com>
2021-03-22 17:22:45 +00:00
Praveen Kumar Reddy Thangadancha
66b1b7961c Add refspec params to run.yaml
Updated refspec defaults because of upstream branch changes from `master` to `main` (`refs/heads/master:refs/heads/master`->`refs/heads/main:refs/heads/main`)
2021-03-22 10:20:45 +00:00
Vincent Demeester
d93795673c Update self reference from master to main 🧙
And update references to community, pipeline, etc. too.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2021-03-19 11:09:49 +00:00
Torben Tretau
530aa74a86 Add version 0.2 to terraform-cli task
- Add parameter for the Terraform image
- Add proxy parameter
- Use official Hashicorp Terraform by default
- Better Terraform Environment Variable description
2021-03-18 17:29:49 +00:00
Tyler Auerbeck
5a746510a6 Fix broken symlink 2021-03-18 10:01:49 +00:00
vinamra28
2da900bba4 Add github-add-comment version 0.3
As of now github-add-comment task supports input of comments only via
params.

This PR adds support of workspaces if in case somebody wants to provide
the comments via some file. One such use case can be:-
In Catlin CI, logs are produced after executing catlin command on
changed files which can contain multiple warnings and these warnings can
be ingored by the user if not posted on the github PR as the CI is
green. So all the logs would be stored in a file with proper formatting
and then the shared workspace can be passed to the github-add-comment
task along with the filename containing the formatted logs.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-03-16 17:27:49 +00:00
PuneetPunamiya
dd779fb5ac Moves a pipeline build-push-gke-deploy from task dir to pipeline dir
This patch includes-

     Currently we have a file called `build-push-gke-deploy`
     which has multiple resources in one file, this patch moves
     the pipeline to the pipeline  directory and it's corresponding
     task to the support directory

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-03-16 15:03:49 +00:00
Jason Hall
0f232875b0 Update kaniko image v1.0.0 -> v1.5.1
Since 1.0.0 a lot of multi-arch improvements have been made, as well as
performance improvements and bug fixes

See full changelog: https://github.com/GoogleContainerTools/kaniko/blob/master/CHANGELOG.md
2021-03-10 14:47:47 +00:00
vinamra28
3e5b01a276 Add Task to post a file on Gist Github
This adds a task to upload a file on gist github.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-03-10 06:54:47 +00:00
vinamra28
f0558ef49f Run orka-init and orka-teardown as privileged
The tasks orka-init and orka-teardown fails to create resources on the
cluster where rbac rules are enforced so running that as privileged
works fine.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-03-09 18:59:47 +00:00
Didrik Finnøy
b48b17321d Choose dind image via params
At the time of writing, the stable `docker:dind` is broken, the solution is to roll back to the previous version (https://github.com/containerd/containerd/issues/4837).
In other words, `docker:dind` should be temporarily replaced with `docker:19-dind`.
I think allowing users to specify the docker-in-docker image via params is the best way to get around this issue.
2021-03-04 09:35:46 +00:00
Andrew Rothwell
69cd254e9b add sparse checkout and bump to 0.3 2021-02-26 14:40:44 +00:00
Spike Burton
8dd769f8e8 Fix failing tests for orka tasks
This PR corrects a potential race condition for the orka-deploy
and orka-teardown tests which causes the nightly integration test run to
fail. A runAfter condition is added to each test pipeline to avoid a
race condition where the pods created by the orka-deploy and
orka-teardown tasks are unable to be created when the orka-init task
has not yet created the secret and config map needed for pod config.
2021-02-23 04:33:43 +00:00
rudeigerc
6f59d7e72b Add version 0.2 to jib-gradle task
Signed-off-by: rudeigerc <rudeigerc@gmail.com>
2021-02-18 10:41:41 +00:00
Roland Huß
2d312aa5d0 Removing knctl-deploy task
knctl has been sunset since 2 years and only supports Knative up to 0.2 (current version: 0.20).
The successor is kn for which there are also entries in the catalog.
2021-02-18 06:57:41 +00:00
vinamra28
61435e642d Fix jenkins and trigger-jenkins-job task tests
Currently in pre-apply-task-hook.sh we are using `jenkins:lts` image
which gets updated on a regular basis which might break the CI while
testing the following tasks:- jenkins, trigger-jenkins-job.

Adding a tag+digest to the image used in test so that the tests don't
break in future.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-02-15 10:57:46 +00:00
Yulia Gaponenko
c976d52312 Minor fix in README for helm-upgrade-from-repo
Fix version of the task in RERADME

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-02-11 12:03:45 +00:00
Yulia Gaponenko
e096c1aef9 Bump helm-upgrade-from-repo task version to 0.2
- Add helm image parameter instead of helm image version

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-02-11 11:47:45 +00:00
SM43
e720c10cd2 Adds context param in golang-test task
This adds context param to provide path to the directory to use
as context.

Signed-off-by: Shivam Mukhade <smukhade@redhat.com>
2021-02-11 10:07:45 +00:00
SM43
9770a832b8 Adds context param in golangci-lint
This adds context param to provide path to the directory to use
as context.

Signed-off-by: Shivam Mukhade <smukhade@redhat.com>
2021-02-11 04:26:46 +00:00
Anders Ingemann
60bb409b01 aws-cli: Make secrets workspace optional
Credentials can be passed to the aws-cli via instance roles (with e.g. kiam).
So an installation of this task could look like this:

```
kind: Kustomization
resources:
- https://raw.githubusercontent.com/tektoncd/catalog/master/task/aws-cli/0.2/aws-cli.yaml
patchesStrategicMerge:
- |-
  apiVersion: tekton.dev/v1beta1
  kind: Task
  metadata:
    name: aws-cli
    annotations:
      iam.amazonaws.com/role: tekton-upload
```

Optional workspaces is supported since pipelines 0.17.0
minVersion in v0.1 of this task is 0.12.1, so a new v0.2 was created
which requires the newer pipelines version.
2021-02-08 10:11:44 +00:00
Yulia Gaponenko
0a29a36c5a Add version 0.2 to jib-maven task
- Add parameter for the maven image
- Replace usage of PipelineResource to image name as param and image digest as
results

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-02-04 12:17:43 +00:00
jace-ys
dcaa00dca6 Task for creating GitHub deployments
This introduces a Task for creating GitHub deployments for a given
repository. This allows people who rely on GitHub deployment events
for their CD systems to be able create them from within a Tekton
pipeline.

This task is pretty much just a wrapper around the GitHub API for
creating deployments. The main params required are the ref
and environment for the deployment, and we fall back to the API's
defaults for the other params.
2021-02-03 10:22:43 +00:00
vinamra28
a1cd5f81d2 Add optional workspaces in kubernetes-actions task
This PR adds optional workspaces support in kubernetes-actions
task and also adds tests for the task.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-01-30 05:56:41 +00:00
Yulia Gaponenko
7dd3f2ce9b Bump pullrequest-init and kubeconfigwriter version to v0.20.1
Latest image versions have multi-arch support, it will allow to use the same
catalog tasks for many hardware architectures.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-01-29 15:38:41 +00:00
Chmouel Boudjnah
4b82365f87 🧹 Update buildah to latest version 0.17.0 2021-01-28 17:21:41 +00:00
Chmouel Boudjnah
8b22d2a0b8 Add subjectAltName to the 0.2 test
Since buildah has been built with the latest golang 1.15 version which has SAN
enforcement, we provide subjectAltName in the generation of self generated
certificate.

See https://security.stackexchange.com/a/183973
2021-01-28 17:21:41 +00:00
Yulia Gaponenko
bbcc51cefc Use multi-arch alpine/git image for git-cli and git-rebase
Image sha specified in git-cli and git-rebase tasks is for
amd64 version of alpine/git:v2.26.2 image. The image is actually
multi-arch one.
Replacement of image sha to point to multi-arch version will allow to
use the same catalog task for many hardware acrhitectures.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-01-28 12:38:41 +00:00
Yulia Gaponenko
310ee430c5 Use multi-arch tkn container image for tkn task
multi-arch tkn image allows to use the same catalog task in the setup
for many hardware acrhitectures (latest tkn image is available for
linux/amd64, linux/s390x and linux/ppc64le)

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-01-28 11:15:41 +00:00
vinamra28
f9d0325471 Add npm cli task
This task can be used to run npm goals on a nodejs based project.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-01-26 16:08:41 +00:00
Chmouel Boudjnah
68101ccbb5 Add a VERSION params to openshift client task
Allow specify an OpenShift Version to the openshift-client task.

Add a test along the way.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-01-25 09:44:40 +00:00
vinamra28
8d53c6ecf0 Fix creation of ServiceAccount in helm tasks
Upstream catalog nightly is failing with the error
`error: error parsing STDIN: error converting YAML to JSON: yaml: line
2: mapping values are not allowed in this context` which is occuring
while creating the SA in `pre-apply-task-hook.sh` as the SA YAML was
first created and then applied and during this process the error is
occuring.

The PR fixes that by directly creating the SA and not first generating
the YAML and then applying in next step.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-01-19 08:10:38 +00:00
Spike Burton
197c3862e5 Add set of modular Orka tasks
This change adds a set of modular Tasks to integrate Tekton with Orka
by MacStadium. Orka allows users to run macOS builds and workloads on
real Apple hardware. An Orka / Tekton integration will allow the
utilization of macOS build agents for CI jobs that run on Tekton
pipelines.

The tasks orka-init, orka-deploy and orka-teardown are designed to work
together in order to allow the utilization of multiple macOS
build agents in a CI/CD pipeline. The orka-deploy Task allows the user
to provide a build script as a parameter, and will allow the user to
store build artifacts in a Tekton workspace. The orka-init and
orka-teardown tasks create and delete virtual machine configurations.
This is accomplished by making calls to the Orka API running in a
separate Kubernetes cluster over a VPN connection.
2021-01-18 14:59:38 +00:00
Theofilos Papapanagiotou
69179c92ad Update task/eks-cluster-teardown/0.1/eks-cluster-teardown.yaml
Co-authored-by: Vinamra Jain <vinjain@redhat.com>
2021-01-14 13:14:15 +00:00
Theofilos Papapanagiotou
4779965a9a Update task/eks-cluster-create/0.1/eks-cluster-create.yaml
Co-authored-by: Vinamra Jain <vinjain@redhat.com>
2021-01-14 13:14:15 +00:00
Theofilos Papapanagiotou
689406cb9b Add EKS cluster create/teardown tasks 2021-01-14 13:14:15 +00:00
vinamra28
81d5673a74 Avoid the usage of PipelineResources from s2i
Earlier version of s2i uses PipelineResources which are now deprecated.
Also the s2i task is missing the digest in results.

With this PR:-
- Removing the usage of PipelineResources and using equivalent task from
  catalog in the tests.
- Storing the digest in results so that it can be used later on by
  another task.
- Adds optional workspace for the cert dir to pass to buildah --cert-dir flag.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-01-14 10:05:15 +00:00
Cansın Aldanmaz
4353aa8d50 Powershell task added 2021-01-07 14:08:12 +00:00
Piyush Garg
fbcfb43a3b Change test repo to cli from pipeline in golang-test task
This will change the golang-test task tests to use cli repo for
unit test rather than pipeline repo as the test are failing there
2021-01-05 14:26:11 +00:00
Chmouel Boudjnah
a861887585 Update all images using openshift to latest stable 4.6
* Update all images to use the latest stable 4.6
* Modify the task using :latest to pin it to 4.6

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-01-05 10:15:11 +00:00
Piyush Garg
74eb6d0289 Remove unnecessary sidecar in golang test 2020-12-22 08:29:07 +00:00
Chmouel Boudjnah
5547bd74a2 Update to 0.18.1
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-12-09 08:02:35 +00:00
Dan Lorenc
c3f44374eb Add a catalog task to run the OpenSSF Security Scorecard project.
This task is very simple right now, but will be extended to support
other flags and output formats int he future.
2020-12-08 17:09:35 +00:00
Navid Shaikh
019ea8094a feat(kn): Add kn-apply task
Add a new kn-apply task which uses `kn service apply`.
  The task takes only two mandatory params; service name and image name.
2020-12-08 08:02:35 +00:00
divyansh42
43f2e56097 Edit broken image link
Signed-off-by: divyansh42 <diagrawa@redhat.com>
2020-11-28 07:09:31 +00:00
linzhaoming
da7ea7c018 Update README.md
Fix comment typo
2020-11-26 13:29:31 +00:00
vinamra28
6dbb6f708b Run build step in Orka as privilege
To run Orka in OpenShift successfully we need to run the build step as privileged else some operations are not permitted without privilege access

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-25 11:29:30 +00:00
vinamra28
9ba4f04fb6 Fix image in Skopeo-copy task
In quay.io if a tag is repushed, the previous digest becomes in-accessible.
So removing the digest from skopeo-copy task as the current digest was in-accessible.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-23 08:51:30 +00:00
vinamra28
24b7974c19 Fix helm-upgrade-from-repo tests
repo "https://kubernetes-charts.storage.googleapis.com" is no longer available
so changing to "https://charts.helm.sh/stable"

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-20 12:44:28 +00:00
vinamra28
11a17cfe87 Add security context in create step of buildpacks
Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-19 15:58:28 +00:00
Napoleon Santana
84a5a1d982 Fix typo
The description says gitlab instead of github.
2020-11-19 09:20:28 +00:00
vinamra28
05d79f53ef Moved samples to their correct place and modified a few files
- git-cli examples moved from git-cli/examples/git-cli -> git-cli/examples/
- git-rebase examples moved from git-rebase/examples/git-rebase -> git-rebase/examples/
- changed workingdir -> workingDir in git-rebase
- corrected install command in az
- improved YAML in readme for proper rendering

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-18 17:55:28 +00:00
vinamra28
3c69820b3f Removed unwanted examples from tasks dir
There were multiple examples which were not a part of that particular task were not removed at the time of catalog reorg

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-18 17:55:28 +00:00
Edvin Norling
601c786261 Add values_file to helm-upgrade-from-source
* Making it easier to overwrite multiple values,
instead of defining them all in overwrite_values.
* Changing param helm_version to helm_image and let
the user define the entire container repo+image.
2020-11-18 11:24:28 +00:00
Spike Burton
74c27b83aa Update task/orka-full/0.1/README.md
Co-authored-by: Vinamra Jain <vinjain@redhat.com>
2020-11-17 17:35:29 +00:00
Spike Burton
3ef0851047 Add orka-full task for MacStadium Orka integration
This change adds a Task to integrate Tekton with Orka by MacStadium.
Orka allows users to run macOS builds and workloads on real
Apple hardware. An Orka / Tekton integration will allow the utilization
of macOS build agents for CI jobs that run on Tekton pipelines.

The orka-full Task will allow the utilization of a single macOS
build agent, allowing the user to provide a build script as a
parameter, and will allow the user to store build artifacts in a
Tekton workspace. This is accomplished by making calls to the Orka
API running in a separate Kubernetes cluster over a VPN connection.
2020-11-17 17:35:29 +00:00
ishani2412
65dd35a5e8 Fix broken link
Signed-off-by: ishani2412 <ishani.1613039@kiet.edu>
2020-11-12 09:52:26 +00:00
Priti Desai
3770e17cf3 bumping up pipeline version
Tekton Pipeline 0.18.0 was just released and as part of the release
process, bumping up the following images in the catalog tasks:

git-batch-merge - v0.17.3
git-clone - v0.17.3

0.18 contains bug fix for git-init and therefore bumping related tasks only.
2020-11-11 09:36:26 +00:00
divyansh42
663cd1a86c Add ability to specify secret name and key in github issue close task
Signed-off-by: divyansh42 <diagrawa@redhat.com>
2020-11-06 14:55:24 +00:00
divyansh42
83a98e61a3 Add the ability to specify secret name and key in github add comment task
Modify github-add-comment task to add the ability to specify secret name and key.

Signed-off-by: divyansh42 <diagrawa@redhat.com>
2020-11-06 14:55:24 +00:00
Chmouel Boudjnah
dc4ced0942 Add codecov task
This task allows uploading a code coverage report to  codecov.io

Closes #533

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-11-04 13:15:22 +00:00
Sunghoon Kang
ead745e7ef Bump git-init version to v0.17.3
Also, make git-init image in git-clone/clone as configurable value
2020-11-04 08:39:22 +00:00
Jason Hall
25e4c0247d Update buildpack task to drop privilege 2020-11-03 08:39:22 +00:00
vinamra28
5ebe8260ab Add tests for Blue Green Deployment Task
Adding tests for blue green deployment task. The test will first
deploy version v1 of an application and service pointing to version
that deployment using `pre-apply-task-hook.sh` script and using taskrun will
deploy version v2 of that application and patch the service to point to v2 version
of the application

Also modifying the images in deployment manifests present in samples as the previous image
is not accessible now

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-03 08:29:22 +00:00
Chmouel Boudjnah
5b3f5bedda pylint: make sure we expands args
Args wasnt expanded properly, it showed like this when running the task:

`[pthon-lint : pylint] /tekton/scripts/script-0-s2wjl: line 8: inputs.params.args: not found`

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-29 16:45:20 +00:00
Chmouel Boudjnah
37aab72942 Fix buildah sample optional workspace link
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-29 07:40:21 +00:00
Chmouel Boudjnah
7907386fc4 Add buildah 0.2 with optional ssl certdir workspace
We are bumping the buildah task to 0.2 since this needs at least pipeline
0.17.0.

This will add a optional workspace for the cert dir to pass to buildah
--cert-dir flag.

I have modified the test to create a registry with SSL certs and make the
buildah task using it.

This add a complete example on how to use this with the openshift internal
registry.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-28 09:55:21 +00:00
Chmouel Boudjnah
1d86613d46 Readd requirements.txt
the install of requirements.txt was removed from the 0.1 task but it is actually
needed for pylint, since it would error out if it can't find the dependences.

We make sure we can install them as user since the image assume root and that
would not work on some k8 install (ie: openshfit and others).

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-28 08:39:21 +00:00
Chmouel Boudjnah
cd1eeae5d6 Add a more generic jenkins task
We had previouslly the triggers-jenkins-job task, this task is more generic and
allows more operations, it currently support starting a jenkins job and getting
the log of a build. It allows as well to wait that the job had started or that
the job has finished.

With this more generic task it makes it easier to have other jenkins operations
in there.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-26 10:20:20 +00:00
vinamra28
e6fcc20450 Move supporting files to support dir
Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-10-26 09:03:20 +00:00
vinamra28
32f2913fd2 Fix Catlin error by adding Digest to the Images
- Previously catalog's task has some images that are not
  tagged properly,this patch fixes these images by adding
  the digest
- Soon once Catlin is added to the CI it will throw error
  for those images which don't have proper tags

co-authored by:- @PuneetPunamiya

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-10-26 09:03:20 +00:00
vinamra28
16c015baed Add tests for tkn Task
Add test for tkn task which will use the current cluster and list/describe the task in current namespace

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-10-22 18:13:18 +01:00
vinamra28
a152c1cde0 Add support to mount kubeconfig in tkn task
The tkn task will be able to work with a kubeconfig for a cluster so that it can operate on it. The following task can also accept a SCRIPT as input so that we can run multiple tkn commands.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-10-22 11:02:18 +01:00
divyansh42
28866d4a83 Bump images to 0.17.1
Signed-off-by: divyansh42 <diagrawa@redhat.com>
2020-10-14 14:56:22 +01:00
Scott
8a453350cc Fix golang-test and golang-build src directory issue
The golang-test and build tasks attempt to use variable interpolation in a workspaces.mountPath
field where it isn't supported. This results in the source code being mounted in a directory
called, literally, "$(params.package)".

This commit updates the golang-test and build tasks to mkdir the package directory and copy
the source code into it, then cd into it and run `go test`/`build`. This should result
in better expected outcome - the source will be in the package directory that it expects
to be.
2020-10-12 16:29:22 +01:00
Chmouel Boudjnah
85cc0565b7 Add a new pylint task
- Bump a new pylint task to 0.2
- Use an image which already has pylint and not auto install it every time we
  run the task.
- Convert the spec to pipelineSpec
- Do not try to install requirements.txt modules since pylint doesn't need it.
- Remove the ability to choose another python version since you probaby would
  not need it for a static analyzer. If you really need it you can redefine the
  image params targetting a custom container image.

Co-authored-by: Maximilian Wurzer <62810491+wumaxd@users.noreply.github.com>
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-11 04:20:21 +01:00
Chmouel Boudjnah
972bca5c56 Add a run for the kubeconfig-creator task
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-07 20:22:20 +01:00
Chmouel Boudjnah
73b9b12e53 Add add_task helper function for tests
We were previously using the outdated git_clone version 0.1 in the
add_git_clone_task function.

So let's introduce a more generic function :

```
add_task ${task} ${version}
```

if version is 'latest' it will always install the latest version of the task.

Change all pre-apply-task-hook to use that function instead.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-07 17:51:55 +01:00
vinamra28
e38be678d1 Add Mypy Linter for Python
The following task contains `mypy` linter which is a popular static code analyser for python that checks code as described http://mypy-lang.org/

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-10-07 10:19:54 +01:00
Chmouel Boudjnah
c22058e4d0 Rework the triggers-jenkins-job
Rewrite the triggers-jenkins-job, the arguments and params are about to same.

Starting from Jenkins LTS 2.176.2 we need to create a crumb and capture the
cookie jar to make the subsequent requests.

https://support.cloudbees.com/hc/en-us/articles/219257077-CSRF-Protection-Explained

Add tests :

We spins up a deployment with a jenkins lts and expose a service to it so our
task can access it.

We do some ninja execing into the pods to create a jenkins job in there and
setup the configmap secret.

We probably should drop the CRUMB setting since it will not work anymore but it
is harmless since we are regenerating it anyway.

Todo: need to test with jenkins image that is older than 2.176.2, but it
probably should work

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-07 08:23:55 +01:00