1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-23 06:08:46 +00:00
Commit Graph

769 Commits

Author SHA1 Message Date
Chmouel Boudjnah
bddd282012 Centralize all the git-clone apply task to a common function
Centralize all the the git-clone apply commands we had around the
pre-apply-task-hook to a central common function.

This will make easier to have the same git-clone task version used everywhere.

Add some documentation about the helper functions along the way.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-07-24 15:00:01 +01:00
Piyush Garg
96d5997d3d Fix pytest and pylint task
This will the fix the pytest and pylint task
which fails if run as non root user
in case of non-root user, it install at
location which is not in PATH of image
so adding the required PATH fix the issue
2020-07-24 11:42:00 +01:00
Christie Wilson
e99060431c Add Tasks to acquire and release boskos resources 🐑
Boskos is a tool that allows one to create a pool of cloud projects
(definitely GCP, I think it supports other providers as well), and
manages acquiring, releasing, and cleaning them between leases.

We use it for Tekton test infrastructure for our end to end tests and
we'd like to use it for our catalog Tasks as well.

This commit adds boskos acquire and release Tasks.

The acquire Task also creates a pod in the running cluster to perform
heartbeating so that boskos knows that the resource is still in use.

The intention of the release Task is that it would be run in a
Pipeline's `finally` clause, however today that would be difficult
because finally Tasks can't yet use the results of other Tasks, but this
functionality is on the way: https://github.com/tektoncd/pipeline/issues/2557

This is part of the work in #373 to create a Pipeline for the catalog.
2020-07-24 11:23:00 +01:00
vinamra28
4e5d8c9244 Add task which can run shell commands on remote Host
The following task can be used to run the shell command (single/multiple) on remote Host by SSHing into the remote machine by providing the required credentials required to
login into that Host and get back the result as output.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-07-24 10:26:00 +01:00
popcor255
152b1bebb2 Add docker-build task
As a user there are some instances where I need to use docker because there is a makefile/script that uses docker in a very niche way. A Tekton Task was added with a docker sidecar.
2020-07-24 10:09:01 +01:00
Christie Wilson
5cf3952aed Add a task for creating a GKE cluster for e2e tests 🧪
As part of #373 I'm continuing to create Tasks that we can use to run
tests for items in the catalog. This Task creates a cluster within a GKE
project and is based on the way we create clusters for the existing end
to end tests we have in Tekton, which are themselves based on Knative,
when are THEMselves based on k8s. These tests all use a tool called
kubetest, which is responsible for invoking boskos (see #408) and
creating a GKE cluster
(https://github.com/kubernetes/test-infra/tree/master/kubetest).

This Task attempts to create a cluster in the same way, which based on the
output in the end to end logs seems to consist of creating the cluster
and setting up a firewall for it.

I'm not sure if this belongs in the catalog itself since it is specific
to our own end to end tests and isn't as generic as other catalog tests,
so if we want to move this into the test directory that seems fine, but
I also think it could be an okay addition to the catalog on its own (esp
if other k8s based projects that test against GKE want to use it.)
2020-07-24 09:41:01 +01:00
Sunil Thaha
b9ddcec4be Make OWNERS own all versions of a resource
Closes: #442
Signed-off-by: Sunil Thaha <sthaha@redhat.com>
2020-07-24 08:46:01 +01:00
Natalie Arellano
c4fbc3379b Update task/buildpacks-phases/0.1/README.md
Co-authored-by: David Freilich <dfreilich@vmware.com>
2020-07-23 21:47:01 +01:00
Natalie Arellano
4c334920ab Comments
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2020-07-23 21:47:01 +01:00
Natalie Arellano
74c473c7c6 Don't parameterize home override directory
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2020-07-23 21:47:01 +01:00
Natalie Arellano
e52d3326cd Add docs comment
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2020-07-23 21:47:01 +01:00
Natalie Arellano
237d24c44d Introduce better security for buildpacks-phases task
- Override /tekton/home for the detect and build phases of the lifecycle to hide registry credentials from buildpack code.
- Run analyze, restore, and export in the lifecycle image published by buildpacksio to hide registry credentials from untrusted builders.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2020-07-23 21:47:01 +01:00
Piyush Garg
a72785d783 Fix kythe-go task on restricted environment
This will fix the task to run on restricted environments
as this task do some chown operations and fails on
environments like opneshift
2020-07-23 17:03:01 +01:00
Maximilian Wurzer
a0e2d1eb4d Add pylint and pytest task 2020-07-23 09:47:00 +01:00
Chanseok Oh
f5a4936531 Make Jib tasks future-proof with home changes
- Set HOME env to /workspace
- Use $HOME for "home" wherever possible
- Gradle: mount empty dir at ~/.gradle to make it globally writable
- Maven: script to `script:` to use "$HOME" variable
2020-07-22 19:59:00 +01:00
David Freilich
f1e386419c Rename buildpacks-separate-phases to buildpacks-phases, to reduce length
Additionally, remove commented out references to ADDITIONAL_TAGS; that will be added as a separate issue.

Signed-off-by: David Freilich <dfreilich@vmware.com>
2020-07-22 08:22:00 +01:00
David Freilich
91fedc066b Update Buildpacks task to use Creator binary, in place of calling individual phases
With the release of Platform API 0.3 (implemented in github.com/buildpacks/lifecycle v0.7.0), there is a creator binary that simplifies the CNB experience; calling it runs all of the individual lifecycle phases, and minimizes the number of separate containers needed for the process. As such, we moved the buildpacks task to use it.

At the same time, it is also helpful, in some scenarios, to run the individual phases; it allows for greater control of secrets, amongst other things. As such, we moved the original task to buildpacks-separate-phases to allow users the choice.

This commit also updates the READMEs, making them a bit clearer about what CNBs are and what the tasks do, as well as adding in the Paketo builders to the example builders.

Signed-off-by: David Freilich <dfreilich@vmware.com>
2020-07-22 08:22:00 +01:00
David Freilich
fc3c4497f9 Rename buildpacks-v3 task to buildpacks
The suffix v3 was a piece of buildpacks history, stemming from the initial start of the buildpacks concept, but isn't relevant to current consumers of the buildpacks task. To simplify it, and to fit with other task styles, we are removing v3

Additionally, we are updating the list of suggested builders, to reflect the current status of pack builders. NOTE: Paketo builders currently have a bug and don't work in Tekton, and until that issue is resolved, we aren't adding them in the list.

Signed-off-by: David Freilich <dfreilich@vmware.com>
2020-07-22 08:22:00 +01:00
Piyush Garg
e83bc62494 Refactor sidecar script
This will refactor sidecar script to read it in
a better way to avoid unicode error
2020-07-22 07:58:00 +01:00
vinamra28
457f4ef2a2 Add kubernetes actions task in kubectl
The task `kubectl-actions` is a generic task which can be used to perform k8s-actions. We take the whole script as a `params` whereas the existing task `kubectl-deploy` only works for deploying the pod and fulfills the specific criteria.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-07-21 11:47:00 +01:00
Piyush Garg
299b352d75 Use python3 2020-07-21 11:20:00 +01:00
Paul S. Schweigert
4dcb251f86 updating task URL in readme 2020-07-20 09:24:00 +01:00
Vincent Demeester
2bb049e125 Bump pipeline release to 0.14.2
- Update the pipeline to install for e2e tests
- Update images to refer to 0.14.0 version of pipeline

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-07-17 15:31:59 +01:00
vinamra28
2283472846 Bump skopeo image to point to the official one
Since skopeo has started providing their official image and the image would be updated regularly so changing the skopeo-copy task image so that it can use the official one from now on.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-07-17 10:18:00 +01:00
Ian Coffey
3985b72782 Add cloudevent task and fix to fit new formatting 2020-07-16 19:35:58 +01:00
Piyush Garg
3068d43075 Remove python pypi upload test
Remove the test as the python pypi upload
test is not working on the CI
2020-07-16 18:35:59 +01:00
Piyush Garg
6f50e1d772 Fix upload-pypi pre-applt-task script 2020-07-16 18:35:59 +01:00
Piyush Garg
7a474eac65 Fix warning for yaml.Load function 2020-07-16 18:35:59 +01:00
Piyush Garg
dce60ee8c5 Skip cloudevent task as it is failing 2020-07-16 18:35:59 +01:00
Piyush Garg
7e3478f283 Update skopeo task for tls-verify flag param
This will fix skopeo tasks to have param for tls-verify flag
and update tests accordingly
2020-07-16 18:35:59 +01:00
Piyush Garg
e166d30895 Fix helm-upgrade-from-source tests 2020-07-16 18:35:59 +01:00
Piyush Garg
58641bdd5e Fix helm-upgrade-from-repo tests 2020-07-16 18:35:59 +01:00
Piyush Garg
5d657a5c96 Fix golangci-lint tests 2020-07-16 18:35:59 +01:00
Piyush Garg
966f7afea6 Fix golang-test tests 2020-07-16 18:35:59 +01:00
Piyush Garg
cab202fc19 Fix golnag build tests 2020-07-16 18:35:59 +01:00
Piyush Garg
9c734a4c47 Remove git-rebase tests as they are not of rebase 2020-07-16 18:35:59 +01:00
Piyush Garg
877f3bf7e2 Fix git cli tests 2020-07-16 18:35:59 +01:00
Piyush Garg
48a7825a86 Fix git clone tests 2020-07-16 18:35:59 +01:00
Piyush Garg
e2b8ed29ab Fix git batch merge tests 2020-07-16 18:35:59 +01:00
Piyush Garg
479c6d967b Update e2e scipts according to new structure
This will update the e2e scripts to run tests according to
new catalog structure after reorg

Fix #420
2020-07-16 18:35:59 +01:00
PuneetPunamiya
ccd1080419 Modifies the path in readme for samples directory
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-15 02:43:58 +01:00
PuneetPunamiya
40393cd4cc Modifies directory names based on the proposal
- sample --> samples
  - example --> samples
  - test --> tests

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-14 19:01:58 +01:00
Scott
f3ebc33423 Remove word "volume" from "Workspace volume" in READMEs
We don't really have a concept in Tekton of something called a "Workspace volume",
but multiple READMEs now refer to it.

This commit removes the term "Workspace volume" in favor of simply "Workspace".
2020-07-13 22:07:58 +01:00
Sunil Thaha
f1a5bb0690 Add manual validation checks to comply with Catalog Org TEP
We would need to ensure that the PR submissions are manually validated
against the [TEP-003] until we have the [validation tool] added to CI.

Signed-off-by: Sunil Thaha <sthaha@redhat.com>

---

[TEP-003]: https://github.com/tektoncd/community/blob/master/teps/0003-tekton-catalog-organization.md
[validation tool]: https://github.com/tektoncd/catalog/issues/413
2020-07-13 15:41:58 +01:00
PuneetPunamiya
d7e5c6db53 Update readme to have structure for resource as per new catalog proposal
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-13 13:41:58 +01:00
PuneetPunamiya
981b883b44 This patch splits helm-upgrade-from-repo task from the helm directory
Changes include:
   - moves helm-upgrade-from-repo task to the task directory
   - copies and modifies readme file for helm-upgrade-from-repo from helm directory
   - moves OWNERS,examples and tests directory from helm directory

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-13 13:41:58 +01:00
PuneetPunamiya
58ba68821e This patch splits helm-upgrade-from-source task from the helm directory
Changes include:
  - moves helm-upgrade-from-source task to the task directory
  - copies and modifies readme file for helm-upgrade-from-source from helm directory
  - copies OWNERS,examples and tests directory from helm directory

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-13 13:41:58 +01:00
PuneetPunamiya
7df96bd527 This patch splits git-cli task from the git directory
Changes include:
  - moves git-cli task to the task directory
  - moves and modifies readme file for git-cli from git directory
  - moves examples and tests directory from git directory

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-13 13:41:58 +01:00
PuneetPunamiya
78922953e9 This patch splits git-rebase task from the git directory
Changes include:
  - moves git-rebase task to the task directory
  - copies and modifies readme file for git-rebase from git directory
  - copies examples and tests directory from git directory

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-13 13:41:58 +01:00
PuneetPunamiya
73124fa07f This patch splits git-clone task from the git directory
Changes include:
  - moves git-clone task to the task directory
  - copies and modifies readme file for git-clone from git directory
  - copies examples and tests directory from git directory

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-13 13:41:58 +01:00