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

1119 Commits

Author SHA1 Message Date
Chmouel Boudjnah
c9bd921943 [E2E] Add common function when we are adding a registry to tasks
Closes #145

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-11-27 04:09:35 -06:00
Chmouel Boudjnah
1b3ceee11d Fix S2I E2E Test
Run the python s2i example from the official sclorgs image instead of the nodejs
one with my personal directory.

Add loglevel parameter to s2i

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-11-25 07:39:35 -06:00
Chmouel Boudjnah
d079c68bca Fix running s2i binary as user
When building the dockerfile we were creating directory as root
unreadable by normal user, let's make sure it's readable/executable by
everyone.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-11-21 09:56:33 -06:00
Chmouel Boudjnah
56ab66e370 Add info about yaml validation in github/pull_req_template
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-11-18 11:49:32 -06:00
Chmouel Boudjnah
c2dd526fe5 Refactor the test functions
- Move test functiosn to e2e-common
- Remove old serviceaccount things
- Allow override functions (or add) like the way we do with plumbing
functions (for downstream CIs)

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-11-18 11:25:33 -06:00
Vincent Demeester
0a8b65343b Add securityContext to run as root for kaniko task 🤖
As of today, kaniko assumes it is running as root, which means, this
example fails on platform that default to run containers as random
uid (like OpenShift). Adding this securityContext make it explicit that
it needs to run as root.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-11-15 15:18:31 -06:00
Piyush Garg
608f6fd06d Refactor e2e test
This will add create install pipeline CRD
function which can accept release yaml or
install latest
2019-11-15 12:02:32 -06:00
Vincent Demeester
394fb62f5b Bump plumbing to latest changes 🔗
This adds `yaml_build_tests` check.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-11-15 09:52:31 -06:00
Vincent Demeester
5c2ab7d6c3 Linting yamls with yamllint 🏷
Next update of plumbing will enable `yamllint` check, so this make
sure we have linted yaml before 👼

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-11-15 09:39:31 -06:00
Vincent Demeester
a2c1c09bfc Add @chmouel as an OWNER
Chmouel has done tons of contributions to the catalog (see
[here](https://tekton.devstats.cd.foundation/d/9/developer-activity-counts-by-repository-group-table?orgId=1&var-period_name=Last%20decade&var-metric=contributions&var-repogroup_name=tektoncd%2Fcatalog&var-country_name=All))
and started working on the e2e tests.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-11-15 09:04:31 -06:00
Chmouel Boudjnah
43f52adb4d Add Taskrun e2e testing
We are adding a test directory with a collection of yamls to runs.

There is a hook system which allows to do some manipulation on task for the
tests (as we don't want to modify the main task). Or if we want to do some extra
pre-setup before setting the taskrun

For example on buildah/kaniko would add a registry as a sidecontainers on
the tasks so we can do our testings without having to upload it somewhere.

S2I is disabled too due of not working on other cluster than openshift.

Closes: #103
2019-11-14 08:10:31 -06:00
Chmouel Boudjnah
1f981f4015 Set priviliged=true for kaniko
As it only builds as priviliged.
2019-11-14 08:10:31 -06:00
Scott
91999fbfcb Add @sbwsg as approver in catalog 2019-11-13 15:21:31 -06:00
Joon Lim
5a98b8a00f Removed numbered list from Install Tekton Pipelines CLI section. 2019-11-13 15:13:31 -06:00
Joon Lim
1399905908 Resolve documentation suggestions for gke-deploy. 2019-11-13 15:13:31 -06:00
Joon Lim
e56ac6b285 Move gke-deploy example to 'example' sub-directory. 2019-11-13 15:13:31 -06:00
Joon Lim
d61a9ca9ae Fix commented out gke-deploy resource.
Resource was commented out for experimentation purposes.
2019-11-13 15:13:31 -06:00
Joon Lim
09d060b333 Add gke-deploy catalog Task and Pipeline, with a PipelineRun example.
Demonstrates how to set up a pipeline to build, push, deploy to GKE.
2019-11-13 15:13:31 -06:00
Navid Shaikh
ef98ff1cf3 References latest kn release v0.10.0 in task
- Updates kn image tag to `v0.10.0`
 - Updates README.md
2019-11-07 10:28:29 -06:00
Raffael Mendes
c3c9590d34 Initial commit of the tower-cli task for tekton catalog
Author:    Raffael Mendes <raffael.pikachu@gmail.com>
 Committer: Raffael Mendes <raffael.pikachu@gmail.com.

Removing the extra white space and adding secret information on the Readme

 Author:    Raffael Mendes <raffael.pikachu@gmail.com>
 Committer: Raffael Mendes <raffael.pikachu@gmail.com>

Removing the pipeline-example form the files

 Author:    Raffael Mendes <raffael.pikachu@gmail.com>

Squashing the commits after PR Approved
 Author:    Raffael Mendes <raffael.pikachu@gmail.com>

Fixing identation of the secret yaml and adding the yaml markup

Text and identation fixes
 Author:    Raffael Mendes <raffael.pikachu@gmail.com>
2019-11-07 02:48:29 -06:00
Javier Romero
e7e73fb863 Add OWNERS file to buildpacks task
Signed-off-by: Simon Jones <sijones@pivotal.io>
Signed-off-by: Javier Romero <jromero@pivotal.io>
2019-11-06 11:45:29 -06:00
Gareth Rushgrove
e049b025bf Be explicit about files being a string
Although this appears to be the default I just started seeing errors:

invalid input params: param types don't match the user-specified type: [files]

with the following params:

```
params:
  - name: files
    value: Pipfile
```

Explicitly setting the type resolves this issue so doing that for now.
I'm going to investigate further.
2019-11-05 15:17:28 -06:00
danielhelfand
5d22dcb133 tag default buildah image as v1.11.0 2019-11-02 01:03:27 -05:00
Javier Romero
006f1f53a4 Set slack link to contact info section for slack
The purpose of this is to provide additional information on _how_ to join Slack and what some of the channels are as described in the contact info section.

Signed-off-by: Javier Romero <jromero@pivotal.io>
2019-10-31 09:02:27 -05:00
Navid Shaikh
339cb178bd Updates kn released image path and pins to v0.9.0
- kn v0.9.0 released image path gcr.io/knative-releases/knative.dev/client/cmd/kn:v0.9.0
2019-10-31 04:45:26 -05:00
James Ward
fb53b6172c There needs to be an equals after the --env
Otherwise it produces an error:
```
unknown flag: --env TARGET
```
2019-10-31 01:36:26 -05:00
Vincent Demeester
74d8f3a555 Add initial OWNERS to some folders 📄
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-10-23 04:53:23 -05:00
Vincent Demeester
0a82fae35c Update README and CONTRIBUTING with some submission guidelines 📖
This adds information on OWNERS of the whole project and Tasks.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-10-23 04:53:23 -05:00
Gareth Rushgrove
e0c07d905c Follow up commit to resolve README issues for conftest tasks 2019-10-23 04:02:23 -05:00
Akihiro Suda
7eb466bc40 buildkit: use mTLS and suppport daemonless mode
* `buildkit` task is updated to use mTLS for connecting to the
  `buildkit` daemon `Service`.
  This prohibits Dockerfile `RUN` containers from connecting to the daemon.

* `buildkit-daemonless` task is newly added for ease of setting up.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-21 09:46:22 -05:00
Gareth Rushgrove
653d7918eb A new task related to Conftest which makes testing Helm charts easier
This accompanies the Helm Plugin for Conftest. It uses Helm to render
the template before running the result through Conftest.
2019-10-21 02:39:22 -05:00
Vincent Demeester
642288dcb3 Bump tektoncd/plumbing dependency
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-10-17 10:39:20 -05:00
Chmouel Boudjnah
70288942e3 Allow passing extra flags to kaniko
When for example we want to add --skip-tls-verify or other flags

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-10-17 08:03:20 -05:00
Piyush Garg
a0e357f14f Update openshift client task for 0.7
This will update the openshift client task to work
with tekton 0.7.0

Also we dont need the Dockerfile and script further
as the oc binary image is available and with
the support of array type param in tekton 0.7

Changes in doc
2019-10-17 03:44:20 -05:00
Vincent Demeester
feafd1f191 Update kaniko executor image to 0.13.0
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-10-16 07:00:20 -05:00
Jason Hall
14d38f2041 Add gcloud Task 2019-10-02 09:59:15 -05:00
Chmouel Boudjnah
911d3e5301 Use quay.io/openshift/origin-cli instead of doing our own
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-10-01 04:33:14 -05:00
slowr
9d4dd53935 Updated forgotten brackets with parentheses
Seems like some yaml files were not updated correctly.

Resolves #91
2019-10-01 02:28:14 -05:00
Chmouel Boudjnah
e081fed543 E2E Tests: Allow ignores and ns default
- allow ignores with the IGNORES variables
- use the created namespace to run the tests
- sed the templates to use that namespace
2019-09-25 11:07:13 -05:00
Chmouel Boudjnah
690d175901 Do not initialize a GCP cluster if we run a local CI
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-09-25 06:56:12 -05:00
Vincent Demeester
328b67800f Update templating to use $(…) instead of ${…}
Starting from 0.7.0, the later is not supported anymore.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-09-24 08:36:12 -05:00
Navid Shaikh
55aaaadc75 Array arguments based kn task
Fixes #79

 Changes:
 1. Renames task `kn-create` to `kn`
 2. `kn` task takes a parameter of type array as `ARGS`
 3. `kn` task defines a resource of type image as `image`
 4. User should reference the `image` as an element of array parameter `ARGS` for e.g. `--image=$(inputs.resources.image.url)`
 5. Additional `ClusterRole` for `kn-deployer` account for `revisions` and `routes` resources
 6. Adds examples in README.md for creating and updating a Knative Service
 7. Adds `kn-image` parameter to task for referencing the kn CLI image to be used, defaults to latest released version of kn image available `gcr.io/knative-releases/github.com/knative/client/cmd/kn`
2019-09-24 08:28:12 -05:00
Vincent Demeester
e6b5d2ad66 Use stepTemplate instead of containerTemplate as it is now gone
We are currently using the latest release to run tests on
catalog. This means this fails with 0.7.0 and above.

`containerTemplate` is now `stepTemplate`.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-09-24 04:56:12 -05:00
Navid Shaikh
1015bc11f5 Fixes typo in s2i/README.md
Updates service account name.
`s/pipelines/pipeline`
2019-09-20 04:57:11 -05:00
Piyush Garg
658c021e86 Fix image throwing error
This change will fix the issue of client
task giving error on tekton 0.5.0

Also tag the image with pipeline version
inspite of always latest

Fix #78
2019-09-19 10:19:11 -05:00
Piyush Garg
3a5e3bb35d Revert "Remove script from openshift client task"
This reverts commit c0324a1a2a.

This is breaking the backward compatability, better release
a branch for 0.5 and then update the tasks
2019-09-19 10:19:11 -05:00
Jason Hall
f916e6d4ee Fix #73 2019-09-16 09:58:10 -05:00
Piyush Garg
c0324a1a2a Remove script from openshift client task
This will remove the script used in image for/
openshift client task.

As we are able to provide arguments as string
with tekton pipeline 0.6.0
we dont need script any more, also updated the
Dockerfile, tasks and README accordingly
2019-09-13 08:57:09 -05:00
Vincent Demeester
019681cb4e Add bobcatfish to owners 👼
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-09-11 14:54:08 -05:00
Navid Shaikh
77a7694273 Fix(kn-create): Updates the default value for force flag
Fixes #70
2019-09-11 09:20:08 -05:00