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

741 Commits

Author SHA1 Message Date
Chmouel Boudjnah
597ceaabb9
Better issue template
A better new issue template with better UI and sections from GitHub
2021-05-26 08:27:07 +02: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
vinamra28
731cbf9bfc Bump plumbing dependencies to fix CI
Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-05-20 05:17:49 +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
Andrea Frittoli
cdf6971be7 Add details on using tasks from bundles
Tasks are now published nightly to bundles.
Document how to use tasks from bundles.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-05-12 14:54:46 +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
Bittrance
85435f9aa4 Raise the visibility of authoring recommendations
Writing my first contribution to the catalog, I failed to find the
authoring recommendations, resulting in unnecessary Slack noise.
This adds references to parts of the documentation that I did
read in the hope that others will see them in time.

I removed the recommendations list that was inlined in CONTRIBUTING.md
as it is covered by the linked recommendations.md.
2021-04-27 16:42:09 +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
Scott
158f6643c1 Update plumbing dep to pin gke version
This commit pins catalog to gke 1.18 for the next six months
while plumbing works on removing basic auth.

Major hat-tip to @jmcshane for doing the work to resolve this
problem!
2021-04-21 04:04:43 +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
vinamra28
05ff826e10 Fix e2e scripts
As of now the function `detect_changed_e2e_test` was running even if the
variable `TEST_RUN_ALL_TESTS` value was set which resulted in breaking
the CI.

Add a condition to call the function iff `TEST_RUN_ALL_TESTS` value is
not set.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-04-13 15:29:40 +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
Scott
bfc1defbad Update catalog e2e test runner to use Pipelines version 0.23.0
Pipelines just released v0.23.0.

This commit updates the e2e test runner to use the new version
of Pipelines when testing catalog entries.
2021-04-06 17:43:48 +01:00
vinamra28
728280525e Run CI on whole catalog if e2e test modified
As of now if there is some modification in any e2e test then CI doesn't
run on whole catalog and this might result in failure of some task which
we get to know next day whene nightly periodic job runs.

This change detects the changes in the tests dir and if there is any
change then run the CI on whole catalog.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-04-06 11:45:48 +01:00
vinamra28
5a36143b2e Append volumes in sidecar instead of podTemplate for fixture
In e2e tests script podTemplate was getting added even if the yaml
manifest contains only ConfigMap which was failing the CI.

Append volumes in sidecar to mount fixtures ConfigMap instead of using podTemplate
as appending the podTemplate was conditional and there can be scenarios
where podTemplate might get appended at wrong location.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-04-06 11:45: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
06kellyjac
442e379fd6 Go back to appending sidecars with python
- Check for libraries in a pip agnostic way
- allow for adding multiple sidecars with a reusable `add_sidecars` function
- fix overwriting sidecars issue for previous python
- make it more readable
2021-04-01 13:23: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
06kellyjac
1a38009d97 Move from dep to go modules
Also bump plumbing/scripts commit
2021-03-23 15:28:46 +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