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 authored and tekton-robot committed Dec 4, 2019
1 parent 4b4f3da commit 6dd3645
Show file tree
Hide file tree
Showing 2 changed files with 38 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"]`
19 changes: 19 additions & 0 deletions tkn/tkn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
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
steps:
- name: tkn
image: "$(inputs.params.tkn-image)"
command: ["/usr/local/bin/tkn"]
args: ["$(inputs.params.ARGS)"]

0 comments on commit 6dd3645

Please sign in to comment.