-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a Task to the catalog for the [Tekton CLI](https://github.com/tektoncd/cli).
- Loading branch information
1 parent
4b4f3da
commit 6dd3645
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)"] |