diff --git a/tekton/resources/images/image-build-trigger.yaml b/tekton/resources/images/image-build-trigger.yaml index 18225a9c1..05fd563e6 100644 --- a/tekton/resources/images/image-build-trigger.yaml +++ b/tekton/resources/images/image-build-trigger.yaml @@ -29,8 +29,8 @@ spec: serviceAccountName: release-right-meow triggers: - name: trigger - binding: - name: trigger-to-build-and-push-image + bindings: + - name: trigger-to-build-and-push-image template: name: build-and-push-image --- diff --git a/tekton/resources/mario-github-comment.yaml b/tekton/resources/mario-github-comment.yaml index a0b9f2abc..19b4bb865 100644 --- a/tekton/resources/mario-github-comment.yaml +++ b/tekton/resources/mario-github-comment.yaml @@ -9,13 +9,13 @@ spec: - name: buildUUID value: $(body.taskRun.metadata.labels.prow\.k8s\.io/build-id) - name: gitURL - value: $(body.taskRun.spec.inputs.resources.#(name=="source").resourceSpec.params.#(name=="url").value) + value: $(body.taskRun.spec.inputs.resources[?(@.name == 'source')].resourceSpec.params[?(@.name == 'url')].value) - name: gitRevision - value: $(body.taskRun.spec.inputs.resources.#(name=="source").resourceSpec.params.#(name=="revision").value) + value: $(body.taskRun.spec.inputs.resources[?(@.name == 'source')].resourceSpec.params[?(@.name == 'revision')].value) - name: targetImageResourceName - value: $(body.taskRun.spec.outputs.resources.#(name=="image").resourceRef.name) + value: $(body.taskRun.spec.outputs.resources[?(@.name == 'image')].resourceRef.name) - name: passedOrFailed - value: $(body.taskRun.status.conditions.#(type=="Succeeded").status) + value: $(body.taskRun.status.conditions[?(@.type == 'Succeeded')].status) --- apiVersion: tekton.dev/v1alpha1 kind: EventListener @@ -25,8 +25,8 @@ spec: serviceAccountName: mario-listener triggers: - name: trigger - binding: - name: trigger-to-comment-github + bindings: + - name: trigger-to-comment-github template: name: mario-comment-github --- diff --git a/tekton/resources/mario-image-build-trigger.yaml b/tekton/resources/mario-image-build-trigger.yaml index 60124b9e5..a9e3b5012 100644 --- a/tekton/resources/mario-image-build-trigger.yaml +++ b/tekton/resources/mario-image-build-trigger.yaml @@ -77,14 +77,15 @@ spec: serviceType: LoadBalancer triggers: - name: trigger - interceptor: - objectRef: - kind: Service - name: mario - apiVersion: v1 - namespace: mario - binding: - name: trigger-to-build-and-push-image + interceptors: + - webhook: + objectRef: + kind: Service + name: mario + apiVersion: v1 + namespace: mario + bindings: + - name: trigger-to-build-and-push-image template: name: build-and-push-image --- diff --git a/tekton/resources/nightly-release/base/eventlistener.yaml b/tekton/resources/nightly-release/base/eventlistener.yaml index 69bc8881e..d0952da0a 100644 --- a/tekton/resources/nightly-release/base/eventlistener.yaml +++ b/tekton/resources/nightly-release/base/eventlistener.yaml @@ -6,7 +6,7 @@ spec: serviceAccountName: robot triggers: - name: cron-trigger - binding: - name: binding + bindings: + - name: binding template: name: template diff --git a/tekton/resources/org-permissions/peribolos-trigger.yaml b/tekton/resources/org-permissions/peribolos-trigger.yaml index 1c5a2755a..c7d0301e4 100644 --- a/tekton/resources/org-permissions/peribolos-trigger.yaml +++ b/tekton/resources/org-permissions/peribolos-trigger.yaml @@ -54,7 +54,7 @@ spec: serviceType: LoadBalancer triggers: - name: peribolos-trigger - binding: - name: peribolos-binding + bindings: + - name: peribolos-binding template: name: peribolos-template diff --git a/tekton/resources/release/nightly-release-logs-trigger.yaml b/tekton/resources/release/nightly-release-logs-trigger.yaml index dd1ffd13e..db7747070 100644 --- a/tekton/resources/release/nightly-release-logs-trigger.yaml +++ b/tekton/resources/release/nightly-release-logs-trigger.yaml @@ -9,9 +9,9 @@ spec: - name: namespace value: $(body.taskRun.metadata.namespace) - name: bucket - value: $(body.taskRun.spec.outputs.resources.#(name=="bucket").resourceRef.name) + value: $(body.taskRun.spec.outputs.resources[?(@.name == 'bucket')].resourceRef.name) - name: versionTag - value: $(body.taskRun.spec.inputs.params.#(name=="versionTag").value) + value: $(body.taskRun.spec.inputs.params[?(@.name == 'versionTag')].value) --- apiVersion: tekton.dev/v1alpha1 kind: EventListener @@ -21,8 +21,8 @@ spec: serviceAccountName: release-right-meow triggers: - name: log-collection - binding: - name: publish-images-taskrun-to-release-logs + bindings: + - name: publish-images-taskrun-to-release-logs template: name: release-logs ---