Created
May 5, 2020 10:36
-
-
Save pt033302/f560c017fe66f72ea1fdb270780ce8c4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
apiVersion: triggers.tekton.dev/v1alpha1 | |
kind: TriggerTemplate | |
metadata: | |
name: v1alpha1-task-template | |
spec: | |
resourcetemplates: | |
- apiVersion: tekton.dev/v1alpha1 | |
kind: TaskRun | |
metadata: | |
generateName: v1alpha1-task-run- | |
spec: | |
taskSpec: | |
steps: | |
- name: "hellothere" | |
image: ubuntu | |
script: echo "hello there" | |
--- | |
apiVersion: triggers.tekton.dev/v1alpha1 | |
kind: EventListener | |
metadata: | |
name: v1alpha1-task-listener | |
spec: | |
# from examples/role-resources/servicaccount.yaml | |
serviceAccountName: pipeline | |
triggers: | |
- name: v1alpha1-task-trigger | |
template: | |
name: v1alpha1-task-template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oc create -f https://gist.githubusercontent.com/praveen4g0/f560c017fe66f72ea1fdb270780ce8c4/raw/2f5936b09694fb40652ebcda269ad8db7b5f16f2/duplicate-triggers-resource-create.yaml
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET <el-route-url>