Open mandibuswell opened 2 years ago
I have confirmed that by setting the name to ref in template this works
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: nationalparks
spec:
params:
- name: git-repo-url
value: $(body.repository.clone_url)
- name: git-repo-name
value: $(body.repository.name)
- name: git-revision
value: $(body.after)
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: EventListener
metadata:
name: nationalparks
spec:
serviceAccountName: pipeline
triggers:
- bindings:
- ref: nationalparks
template:
**ref: nationalparks**
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app.kubernetes.io/managed-by: EventListener
app.kubernetes.io/part-of: Triggers
eventlistener: nationalparks
name: el-nationalparks
spec:
port:
targetPort: http-listener
to:
kind: Service
name: el-nationalparks
weight: 100
I tried the current 4.6 lab with the amended pipeline and trigger yamls for 4.7 on a 4.8 install and everything worked except the trigger step. I used this GIST to accelerate through https://gist.github.com/mandibuswell/c1d3d61f9413cf849146ca6e1798b4eb
In addition of course, the imagery will need updating.