1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-30 06:38:13 +00:00
Commit Graph

572 Commits

Author SHA1 Message Date
yuege01
8b39de7030 squash all commits of curl task
create curl task to request response from internet

Add a readme file to specify how to run curl task

Modify parts of the readme file

create two simple taskruns to test curl

change spec for url value

change spec to re-push

change image place to be param

users now can pin the version of image as they want

Add a new param

add a curl image option so users now can use different version of curl image at will

update readme file on param description
2020-06-16 06:57:56 +01:00
JJ Asghar
2abbdf3a59 A yellow warning for legcacy issue template was there
- This was to update to the new standard for issue templates for github.
- Also added a `.config.yml` which is also part of the new version

Signed-off-by: JJ Asghar <jjasghar@gmail.com>
2020-06-11 09:08:54 +01:00
pengli
becece2f29 Enhance "kubectl wrapper
The requirements discussed in #233
- action: ['get', 'create', 'apply', 'delete', 'replace', 'patch'] -- the action to perform to the resource
- merge_strategy: ['strategic', 'merge', 'json'] -- the strategy used to merge a patch, defaults to "strategic"
- success_condition: a label selector expression which describes the success condition
- failure_condition: a label selector expression which describes the failure condition
- manifest: the kubernetes manifest"
2020-06-10 13:39:54 +01:00
Daniel Noguerol
80d9d4cb9b Fixed param name in send-to-telegram. 2020-06-10 13:14:54 +01:00
Vincent Demeester
0716880b5d Add a "Run as non root" recommandation…
… also talk a little bit about `privileged` and how to be explicit in
the task if it needs to be run as root and/or privileged.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-06-10 09:02:55 +01:00
JJ Asghar
ab844fa5f3 I'm an owner now!
Added me as a reviewer and approver to the task resource i created.

Signed-off-by: JJ Asghar <jjasghar@gmail.com>
2020-06-08 10:41:53 +01:00
Natalie Arellano
1abf7ae5c8 Clarify usage of platform directory.
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2020-06-08 10:14:53 +01:00
Natalie Arellano
9beb1daa4c Add support in buildpacks task for platform envs
This change makes it possible for users to provide
environment variables to buildpacks via a volume with
appropriately configured directories.

Also includes some fixes for v1beta1 compatibility.

See https://buildpacks.io/docs/reference/buildpack-api/
for more info on how PLATFORM_DIR is used.

Resolves #160

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2020-06-08 10:14:53 +01:00
Javier Romero
e9eb4b07a0 Update buildpacks task platform API to 0.3
This change makes it so that the tekton task is compatible with
the latest changes from the Cloud Native Buildpacks.

Notably,

- Support for cred helpers has been removed. ([#259](https://github.com/buildpacks/lifecycle/pull/259))
- Default process type is configurable. ([#243](https://github.com/buildpacks/lifecycle/pull/260))

Resolves #194

Signed-off-by: Javier Romero <rjavier@vmware.com>
2020-06-08 10:14:53 +01:00
Divyansh42
265c6fe380 Add Gitlab Release task
This task can be used to make a release on the Gitlab.

Assets or binaries of the released version can also be uploaded with the release.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-06-04 10:23:51 +01:00
Chmouel Boudjnah
6b7cf32a82 Make sure we skip the test if there is no yaml file in there
Test would be failing if there is a directory but no yaml template in there,
which in reality we should not have this happening but it happens sometime.

let's make sure we skip the test if there is no yaml files then.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-06-04 09:56:51 +01:00
Divyansh42
84fd3cc1ef Add support for merge requests in gitlab add-labels task
Current task doesn't support merge requests. Added support
for merge requests in the same task.
Now we can add labels to merge requests as well.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-06-04 09:31:09 +01:00
Scott
d12e690595 Improve examples for the git-clone Task
The git-clone example only demonstrated the very simplest of behaviour
and didn't provide much in the way of instruction on using its features.

This PR adds examples for cloning a branch, cloning a specific commit,
and cloning tags. Each example includes clear description of its purpose
and the features it demonstrates.

I've removed the inline git-clone example from the README because it's
really long and the README needs to serve the purpose of documenting
multiple Tasks (git-clone as well as git-batch-merge, and any future
Tasks we add as well). Rather than bloat the README with many examples
which can go stale if we modify git-clone's behaviour I've simply linked
to the new example files.
2020-06-04 09:31:01 +01:00
Divyansh42
42d6a5678e Add task to label github pull request or an issue
This task can be used to add labels to a github pull request or an issue.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-06-04 09:30:53 +01:00
vinamra28
aea5ad2415 Improve existing OpenShift provision task
Parameterized the UPI image so that if anybody wants to use their image then they can use it and also updated the README

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-06-04 09:06:00 +01:00
Divyansh42
c6c20e133a Add aws-cli task
This task performs operations on Amazon Web Services resources using `aws`.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-06-04 09:05:51 +01:00
vinamra28
9b1f501dd6 Add SonarQube Task to catalog
The following task can be used to do static analysis of the source code by taking SonarQube server URL as the input.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-06-02 12:46:50 +01:00
JJ Asghar
ca8c55d078 I'm not an owner, but Andrea is!
Added Andrea as an owner and reviewer for this task.

Signed-off-by: JJ Asghar <jjasghar@gmail.com>
2020-06-02 11:22:50 +01:00
JJ Asghar
8993fd78f5 IBM Cloud CLI Task for tekton
- Initial Release inspired by `az` for the IBM Cloud CLI in the catalog

Signed-off-by: JJ Asghar <jjasghar@gmail.com>
2020-06-02 11:22:50 +01:00
ishani2412
c89d3965b7 Improve Readme.md
PR to improve the Readme.md migrating the install task URL from
master to v1beta1

Signed-off-by: ishani2412 <ishani.1613039@kiet.edu>
2020-06-02 09:03:51 +01:00
JJ Asghar
0e8ec65576 Update README.md
changed it to v1beta1 because master is out of sync/does not work.

Signed-off-by: JJ Asghar <jjasghar@gmail.com>
2020-05-29 17:32:49 +01:00
Martin Gencur
ed783dfdd8 Fixes 2020-05-27 13:43:48 +01:00
Martin Gencur
96c2b5fad1 Make Pipeline more generic 2020-05-27 13:43:48 +01:00
Martin Gencur
18916dedc2 Migrate away from PipelineResources in kn task 2020-05-27 13:43:48 +01:00
pengli
44385a82cd Add "ClusterRole" to aviod binding "cluster-admin"
To binding `cluster-admin` to SA default/default without warning user will introduce some potential security issue, so:

1. Make it clearer to users that this is only intended for insecure/non-critical use cases, and should be modified after installation to match the user's use case and needs, and/or
2. Provide a more scoped-down role binding initially, which users can add to as they need.
2020-05-27 02:23:48 +01:00
Siamak Sadeghianfar
0bb18f1f1c fixed Maven mirror url param description 2020-05-26 19:32:48 +01:00
Chmouel Boudjnah
8b6c3bf0de Allow define storage driver for buildah
In some case we want to use different storage driver than overlay, let's allow
this.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-05-19 17:03:05 +01:00
Vincent Demeester
9bcaacb8e5 README: update the notice on v1alpha1 👼
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-05-19 15:09:05 +01:00
Piyush Garg
bf7e538778 Bump git-init image to 0.12.1
This will bump git-init image to 0.12.1 which is
latest

This will probably fix #312 and #297
2020-05-18 19:22:05 +01:00
Priti Desai
f670dfaed2 adding proxy settings to git-clone
Adding httpsProxy, httpProxy, and noProxy in git-clone task.

(cherry picked from commit 13037cbd0d)
2020-05-18 16:38:04 +01:00
Scott
7ccb25eb5d Correct subdirectory error in git-clone's README
By default git-clone now checks out a repo directly into the root
of the provided workspace. The README still states in one spot that
it checks out to the "src" subdirectory but this is no longer true.

This commit updates the content of the README to correctly reflect
the fact that git-clone checks out directly into the workspace's root.
2020-05-18 12:02:05 +01:00
Divyansh42
49afb0c849 Add task to add labels in Gitlab issue
This `task` can be used to add labels to the gitlab issue.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-05-18 11:59:05 +01:00
Scott
7fade7fc03 Update to Pipelines 0.12.1 for e2e tests
We've been using Pipelines 0.11.0-rc2 for e2e tests but that's
now several months old and there are features in 0.12+ that we
can expect to appear in Catalog Tasks and their Tests.

This commit attempts to update the version of Tekton used for
e2e tests.
2020-05-18 10:30:05 +01:00
Divyansh42
89d86e142d Add Github Release task
This task can be used to make a release in the github.
Multiple assets including binaries of the released version and the release notes, can also be uploaded with the release.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-05-13 14:46:03 +01:00
Christie Wilson
d228f4385d Add comment about security context 🔒
I copied this Task (can't wait for OCI registry referencing! :D)
into Pipelines for an example in https://github.com/tektoncd/pipeline/pull/2482
and @ImJasonH asked me to add a comment, so I used
0a8b65343b
to figure out why this was added and now I'm adding the comment
here as well!
2020-05-11 22:29:37 +01:00
Priti Desai
13037cbd0d adding proxy settings to git-clone
Adding httpsProxy, httpProxy, and noProxy in git-clone task.
2020-05-11 16:29:37 +01:00
Chmouel Boudjnah
a20875f6f7 Update buildah to 1.14.8
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-05-11 12:22:37 +01:00
Jonas Pettersson
c1c6b9f795 Add image-digest as Result in Buildah task
The Buildah task does not have a task result. Tasks executing after this task is interested in the resulting image-digest. This commit adds the pushed image-digest as a task result, very similar to the task result in the Kaniko task.
2020-05-11 11:56:38 +01:00
Holly Cummins
2dc359b1dd Do not use layers, since layer caching depends on timestamps (unreliable in a CI/CD)
See discussion in https://github.com/tektoncd/catalog/issues/265. Although using layer caching in the buildah build would be nice, there are two prerequisites:
* A PVC to store the cache between pipeline runs
* A fix for https://github.com/containers/buildah/issues/2215

The buildah issue is that buildah uses file timestamps to invalidate the cache. Locally, this works well, but in a CI/CD the files will always be freshly downloaded from source control, so they will be newer than the cache. This means the cache would never be used, even if it was available in a PVC.

Given that, creating and storing the layers is an unnecessary expense. I saw a 40% build time improvement without the layer caching.
2020-05-11 10:16:37 +01:00
Christie Wilson
be8ffdd33d Fix kaniko digest results 🔧
I tried to use the kaniko task to update the build + deploy pipelinerun
example in the pipelines repo and run into some trouble which was
partially fixed in #286, in addition I fixed:
- The jq parsing of the digest from the imagedigestexporter output
  wasn't quite right, the name of the field was incorrect and it was
  surrounded by quotes (removed with -r) and
- Removing the newline from the result so it can be placed directly in
  parameters containing image urls (removed with -j)
- If the kaniko Task was used more than once with the same workspace,
  even if it was building from different directories, the digests would
  conflict b/c it was always writing to the same files. Now the files it
  writes to are relative to the context the image is alreayd using to
  build

Also removed example output resource in docs since that isn't actually
used anymore.
2020-05-07 14:57:36 +01:00
Anish Dangi
8059ea9276 Add batch merge and refspec support to git task
Add refspec support to git task corresponding to https://github.com/tektoncd/pipeline/pull/2320

Add a new batch merge task (https://github.com/tektoncd/pipeline/issues/508) that re-uses
the git-init container and subsequently performs the requested batch merge mode on top of
the checked out revision
2020-05-07 14:33:36 +01:00
vinamra28
59717e2db4 Add OpenShift Provisioning Task
This task can be used to provision an OpenShift cluster on cloud provider such as AWS and GCP using the Installer Provided Infrastructure.
Run the openshift-provision task as Root.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-05-07 10:45:37 +01:00
Scott
67612fa4f6 Give test Runs time to appear in kubectl get lists
Immediately after our test runner submits test TaskRuns / PipelineRuns
it checks that those Runs appear in `kubectl get` output. In a recent
PR to add a kythe-go Task (#301) the test runner would fail at this
point. Checking locally I was able to reproduce the issue. It looks
like it can take a small amount of time for submitted resources to
show up in `kubectl get` output.

For other types of test failures the test runner gives a grace period of
up to ten minutes. I did the same for the `kubectl get` check, allowing
the test run loop to run again in ten seconds if nothing appears in a
taskrun / pipelinerun list. Making that change resulted in the kythe-go
test proceeding normally and passing.

This commit updates the test runner to repeatedly check whether
TaskRuns / PipelineRuns have appeared in the `kubectl get` output.
2020-05-07 10:06:36 +01:00
vinamra28
7d26fa5fc0 Add OpenShift Client Python task
The following task can be used to run openshift commands within the python script.
Also added Dockerfile for the image build

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-05-07 06:32:36 +01:00
Vincent Demeester
01ceffd567 Bump plumbing to recent master 👼
Adds a bunch of fixes to CI, mainly fixing GitHub api rate limits

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-05-06 18:56:36 +01:00
Gijs
1215688483 Make the curl command capable of quotes 2020-05-04 22:29:36 +01:00
Gijs
e9be956c60 Add telegram example 2020-05-04 22:29:36 +01:00
Billy Lynch
20d449cd43 Add Kythe golang extractor task.
This task allows you to generate Kythe annotation metadata for a given
Go project. This follows the workspace model as presented by the `git`
Task. The expectation is that any results place in the workspace will be
exported by another Task in the pipeline for remote storage (e.g. GCS,
etc).
2020-05-04 10:19:36 +01:00
Divyansh42
0ad08d92fa Add a kubeconfig creator Task to access cluster
This is a part of documenting and providing task in the catalog that would help user not using PipelineResource for accesing the target cluster.
This can help in creating a kubeconfig file by providing cluster credentials to the task.

Ref:#95

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-05-04 10:06:36 +01:00
Greg Dritschler
db51b075ea Fix for issue 285. Fix kaniko image digest result 2020-04-24 09:34:18 +01:00