From 2a2e82f48e29d1f5e3750b2e7612d0a00768a47f Mon Sep 17 00:00:00 2001 From: Dibyo Mukherjee Date: Thu, 9 Feb 2023 16:22:13 -0500 Subject: [PATCH] Replace cloudevents resource with task from hub Cloud events pipeline resource was removed from pipelines recently. Our E2E tests run against the main branch of pipelines and that the getting-started tutorial still uses this resource, our e2e tests have been failing. Fixes #1522 Signed-off-by: Dibyo Mukherjee --- docs/getting-started/pipeline.yaml | 22 ++++++++++++++-------- docs/getting-started/triggers.yaml | 6 ------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/getting-started/pipeline.yaml b/docs/getting-started/pipeline.yaml index 5f0983138..d960fb9e3 100644 --- a/docs/getting-started/pipeline.yaml +++ b/docs/getting-started/pipeline.yaml @@ -15,8 +15,6 @@ spec: type: git - name: image-source type: image - - name: event-to-sink - type: cloudEvent tasks: - name: build-docker-image taskRef: @@ -40,9 +38,20 @@ spec: resource: image-source from: - build-docker-image - outputs: - - name: event-to-sink - resource: event-to-sink + - name: send-cloud-event + taskRef: + resolver: hub + params: + - name: name + value: cloudevent + - name: version + value: 0.1 + params: + - name: sink + # URL of the Service we create below + value: http://event-display.getting-started.svc.cluster.local + - name: eventID + value: $(context.taskRun.name) --- apiVersion: tekton.dev/v1beta1 kind: Task @@ -54,9 +63,6 @@ spec: inputs: - name: image-source type: image - outputs: - - name: event-to-sink - type: cloudEvent steps: - name: run-kubectl image: lachlanevenson/k8s-kubectl diff --git a/docs/getting-started/triggers.yaml b/docs/getting-started/triggers.yaml index 3f348f2ca..c0296f1b6 100644 --- a/docs/getting-started/triggers.yaml +++ b/docs/getting-started/triggers.yaml @@ -37,12 +37,6 @@ spec: params: - name: url value: DOCKERREPO-REPLACEME # docker-repo-location.com/repo:getting-started - - name: event-to-sink - resourceSpec: - type: cloudEvent - params: - - name: targetURI - value: http://event-display.getting-started.svc.cluster.local --- apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerBinding