Skip to content

Commit

Permalink
Add tkn to catalog.
Browse files Browse the repository at this point in the history
Adds a Task to the catalog for the [Tekton CLI](https://github.com/tektoncd/cli).
  • Loading branch information
wlynch committed Dec 2, 2019
1 parent 56ab66e commit 56e47df
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tkn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# tkn

This task performs operations on Tekton resources using
[`tkn`](https://github.com/tektoncd/cli).

## Install the Task

```
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/tkn/tkn.yaml
```

## Inputs

### Parameters

name | description | default
--------- | ------------------------------------------- | -------
tkn-image | `tkn` CLI container image to run this task. | gcr.io/tekton-releases/dogfooding/tkn
ARGS | The arguments to pass to the `tkn` CLI. | `["help"]`
20 changes: 20 additions & 0 deletions tkn/tkn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: tkn
spec:
inputs:
params:
- name: tkn-image
description: tkn CLI container image to run this task
default: gcr.io/tekton-releases/dogfooding/tkn
- name: ARGS
type: array
description: tkn CLI arguments to run
default: ["help"]
steps:
- name: tkn
image: "$(inputs.params.tkn-image)"
command: ["/usr/local/bin/tkn"]
args: ["$(inputs.params.ARGS)"]

0 comments on commit 56e47df

Please sign in to comment.