mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-25 06:17:50 +00:00
5a3e5f630f
- Initially all tags were mapped to categories in Hub, for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml, so whenever a new tag was added in a task it was mapped to a category called `others`. Hence before every release we had to manually map these new tags to some category, hence after the discussion in Catalog and Hub WG, a proposal was created for adding a category as an annotation. - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352 Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: cloudevent
|
|
labels:
|
|
app.kubernetes.io/version: "0.1"
|
|
annotations:
|
|
tekton.dev/pipelines.minVersion: "0.12.1"
|
|
tekton.dev/categories: Networking
|
|
tekton.dev/tags: cloud
|
|
spec:
|
|
description: >-
|
|
This Task send a single CloudEvent to a specified sink.
|
|
params:
|
|
- name: sink
|
|
type: string
|
|
description: Sink to send Event to
|
|
- name: eventID
|
|
type: string
|
|
description: Event ID to use
|
|
- name: eventType
|
|
type: string
|
|
description: The Event Type to use
|
|
default: "tekton.cloudevent.message"
|
|
- name: source
|
|
type: string
|
|
description: Source of the CloudEvent
|
|
default: ""
|
|
- name: data
|
|
type: string
|
|
description: The payload of the Event
|
|
default: ""
|
|
steps:
|
|
- name: send
|
|
image: docker.io/iancoffey/sendevent-89c3de01c503ceb66b676a3e41c265ed@sha256:fc39998cba7ad8e54323b948b56b11b0b235996069349fb74776865fedf182a5
|
|
command: ["sendevent"]
|
|
args:
|
|
- "--event-id=$(params.eventID)"
|
|
- "--event-type=$(params.eventType)"
|
|
- "--source=$(params.source)"
|
|
- "--data=$(params.data)"
|
|
- "$(params.sink)"
|