Skip to content

Commit

Permalink
Replace cloudevents resource with task from hub
Browse files Browse the repository at this point in the history
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 tektoncd#1522

Signed-off-by: Dibyo Mukherjee <[email protected]>
  • Loading branch information
dibyom authored and tekton-robot committed Feb 14, 2023
1 parent 783877c commit 2a2e82f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 14 additions & 8 deletions docs/getting-started/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ spec:
type: git
- name: image-source
type: image
- name: event-to-sink
type: cloudEvent
tasks:
- name: build-docker-image
taskRef:
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 0 additions & 6 deletions docs/getting-started/triggers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a2e82f

Please sign in to comment.