1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
Commit Graph

81 Commits

Author SHA1 Message Date
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
Gareth Rushgrove
a849fc2735 Added task for Conftest
Conftest is a tool used to validate configuration files using Open
Policy Agent. This commit adds a `Task` spec for using Conftest from
Tekton, along with documentation of the parameters and usage.
2019-09-05 08:57:06 -05:00
Chmouel Boudjnah
060237335b openshift-client/Dockerfile Make sure we cleanup after ourselves
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-09-03 10:47:06 -05:00
Chmouel Boudjnah
2ab718ac48 s2i/Dockerfile run yum update in docker image
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2019-09-03 10:47:06 -05:00
jtcheng
a844eaa0be Support to set go11module in golang task
The default value of GO11MODULE is auto in golang.
We should allow to change the value, in order to force module support on or off regardless of directory location

Signed-off-by: jtcheng <jtcheng0616@gmail.com>
2019-08-30 07:59:04 -05:00
Michael Cristina
b2e52a9120 Update golangci-lint release to v1.17.1 2019-08-27 14:21:03 -05:00
Priti Desai
f7c5c238ce OpenWhisk on Knative
Adding OpenWhisk Tekton Resources which can be used to serve OpenWhisk actions on Knative.

These changes include an entire workflow of how to run OpenWhisk Actions on Knative,
specifically OpenWhisk NodeJS runtime. It also includes examples such as:

1. Simple Hello World action
2. Hello World action with JSON Payload as Parameters
3. OpenWhisk Action File from a GitHub Repo
4. OpenWhisk Action from a zip file
2019-08-27 12:19:03 -05:00
Jason Hall
0255b2b704 Add ImJasonH as an OWNER 2019-08-27 11:54:08 -05:00
Gareth Rushgrove
19aede46c5 Added task for Kubeval
Kubeval is a tool used to validate Kubernetes configuration against
the upstream object schemas. This commit adds a `Task` spec for using
Kubeval from Tekton, along with documentation of the parameters and usage.
2019-08-19 03:39:59 -05:00
Henry Jenkins
a35dc61140 [docs] Add code type to codeblocks
Add yaml type to the codeblock for syntax highlighting.
2019-08-13 11:07:56 -05:00
Jason Hall
2abeb30958 Address review feedback; add force param 2019-08-02 18:26:59 -05:00
Jason Hall
f4cc888774 Add a new Task that uses kn to create services
Also define a sample ServiceAccount, ClusterRole and ClusterRoleBinding
that can be used to authorize Knative Service deployments.
2019-08-02 18:26:59 -05:00
Andrew Meyer
80b2fff143 Add compatibility note
Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
2019-07-22 10:16:55 -05:00
Andrew Meyer
ebdd56e462 Update buildpacks-v3 example
- Use correct syntax for volume claim
2019-07-22 10:16:55 -05:00
Andrew Meyer
44791f39e3 Update buildpacks-v3 template for latest lifecycle
Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
2019-07-22 10:16:55 -05:00
Mark Nuttall
0fb18fc97e workingDir typo 2019-07-17 09:48:52 -05:00
Alexander Matyushentsev
ca27bdf6ad Fix argocd incorrect usage of ARGOCD_USERNAME/ARGOCD_USERNAME in login step; support parameterizing argocd image version 2019-07-10 03:11:50 -05:00
AdityaGupta1
667ccf069f use ConfigMap and Secret for server address and authentication 2019-06-26 18:40:14 -05:00
AdityaGupta1
51c5ac9a94 separated commands into commands and arguments 2019-06-26 18:40:14 -05:00
Aditya Gupta
b8ec367717 add links to README 2019-06-26 18:40:14 -05:00
AdityaGupta1
917c35e2b4 initial commit - argocd sync task
This task is used to sync an Argo CD application with its underlying Git repository and to wait for it to become healthy. It takes in no resources, only parameters, and passes them to the argocd command. The application's name and the Argo CD server address are required. Some form of login is also required, either through a username/password combo or an authentication token. The specific revision to sync to and the flags to append to commands can also be passed as parameters.

Currently there is no way to pass plain strings or files between tasks, or it could have been better to split the login and sync tasks. This way, there could have been two login tasks - one for username/password and one for authentication token. With the current approach, the bash command runs an if statement to see if the token's default value was overriden, and if so, it uses that token. Otherwise, it uses the username/password passed in. This issue (typing of PipelineResources) is being discussed in https://github.com/tektoncd/pipeline/issues/238.
2019-06-26 18:40:14 -05:00
Khurram Baig
984c3a249b Change buildah image to official repository 2019-06-26 09:56:13 -05:00
Vincent Demeester
fb943f5a06 golang: fix lint task GOOS and GOARCH default value
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-06-14 06:22:09 -05:00
Vincent Demeester
91b96c3315 golang: fix wrong default flags in the README
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-06-14 06:22:09 -05:00
Vincent Demeester
68b67e90d4 golang: fix url for the Task's yaml
Those url were not targeting the files, I renamed the files and forgot
to update the README.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-06-14 06:22:09 -05:00
Vincent Demeester
9916454686 Initial golang tasks
This adds initial golang tasks : build (`golang-build`),
tests (`golang-tests`) and linting (`golangci-lint`, using
golangci-lint).

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-06-11 04:50:09 -05:00
Vincent Demeester
137d450bd2 Initial knctl task definition 🌮
Adds a `knctl-deploy` task that will deploy an image (resource) as a
Knative service.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-06-06 11:52:06 -05:00
Vincent Demeester
82932c9513 Bump tektoncd/plumbing with latest fixes
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-06-05 03:56:06 -05:00
Vincent Demeester
c24059e0fc Update s2i tasks documentation
- Small fix on the parameter name (and comments), `BUILDER_IMAGE` and
  `S2I_IMAGE` were inverted.
- Remove the `examples` folder and add an example inline.
- Add a non-exhaustive list of s2i builder images that can be used
  with this task.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-05-29 10:50:03 -05:00
Khurram Baig
d64009e4fa Added s2i task with example 2019-05-29 07:53:03 -05:00
Siamak Sadeghianfar
e839fc4da6 Updated openshift-client task docs (serviceaccount, examples, etc) 2019-05-28 05:07:04 -05:00
Vincent Hou
3abf4f2e05 Add a specific version and context support for kaniko
We need to pin to specific version rather than go with the dynamic
latest commit. The version v0.9.0 seems to be a stable one.

Add the parameter context support for kaniko.
2019-05-24 02:41:00 -05:00
Khurram Baig
cb7e0ca870 Fix the typo in buildah example 2019-05-24 02:34:01 -05:00
Piyush Garg
41b864ab08 Update dockerfile and example
Update dockerfile to take multiple
args and update example to use multiple
args

Readme and minor user experience improvement
2019-05-17 10:33:58 -05:00
Piyush Garg
e7df6c077a Use consistent naming openshift-client 2019-05-17 10:33:58 -05:00
Piyush Garg
bb1c500000 Make the oc task reusable
This will add a script to Dockerfile which will
receive command as string and then parse them
to execute with oc

This way we can make the task resuable

Changes to use the ubi image as base image

Update both the examples to use reusables task

Update README
2019-05-17 10:33:58 -05:00
Dan Lorenc
d9147be8a1 Add a basic Task CRD validation test for all Tasks in the catalog.
This e2e test just verifies each task is valid by setting up a test cluster and
creating each task. This uses boskos to provision and clean a project.

This also fixes up the makisu task to remove the extraneuous yaml file.
2019-05-16 10:32:59 -05:00
Vincent Demeester
5f7a8ce280 Remove comments from Gopkg.toml and refer to the documentation
Those comments are added by default when doing a `dep init`. We don't
need them and can just refer to the documentation instead.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-05-15 10:34:57 -05:00
Vincent Demeester
9443e5585d Use tektoncd/plumbing instead of knative/test-infra
As Pipeline graduated from `knative`, we're trying, with `plumbing` to
make remove our dependency on knative `test-infra` scripts. Those
scripts have been migrated to `tektoncd/plumbing`, so let's start use those.

The end goal being to reduce even more the use of those script and
only use pipeline to run experimental pipelines 👼.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-05-15 09:42:57 -05:00