@@ -51,7 +51,6 @@ For example:
51
51
- [ Cluster Resource] ( #cluster-resource )
52
52
- [ Storage Resource] ( #storage-resource )
53
53
- [ GCS Storage Resource] ( #gcs-storage-resource )
54
- - [ Cloud Event Resource] ( #cloud-event-resource )
55
54
- [ Why Aren't PipelineResources in Beta?] ( #why-aren-t-pipelineresources-in-beta )
56
55
57
56
## Syntax
@@ -925,70 +924,6 @@ service account.
925
924
926
925
--------------------------------------------------------------------------------
927
926
928
- # ## Cloud Event Resource
929
-
930
- The `cloudevent` resource represents a
931
- [cloud event](https://github.com/cloudevents/spec) that is sent to a target
932
- ` URI` upon completion of a `TaskRun`. The `cloudevent` resource sends Tekton
933
- specific events; the body of the event includes the entire `TaskRun` spec plus
934
- status; the types of events defined for now are :
935
-
936
- - dev.tekton.event.task.unknown
937
- - dev.tekton.event.task.successful
938
- - dev.tekton.event.task.failed
939
-
940
- ` cloudevent` resources are useful to notify a third party upon the completion
941
- and status of a `TaskRun`. In combinations with the
942
- [Tekton triggers](https://github.com/tektoncd/triggers) project they can be used
943
- to link `Task/PipelineRuns` asynchronously.
944
-
945
- To create a CloudEvent resource using the `PipelineResource` CRD :
946
-
947
- ` ` ` yaml
948
- apiVersion: tekton.dev/v1alpha1
949
- kind: PipelineResource
950
- metadata:
951
- name: event-to-sink
952
- spec:
953
- type: cloudEvent
954
- params:
955
- - name: targetURI
956
- value: http://sink:8080
957
- ` ` `
958
-
959
- The content of an event is for example :
960
-
961
- ` ` ` yaml
962
- Context Attributes,
963
- SpecVersion: 0.2
964
- Type: dev.tekton.event.task.successful
965
- Source: /apis/tekton.dev/v1beta1/namespaces/default/taskruns/pipeline-run-api-16aa55-source-to-image-task-rpndl
966
- ID: pipeline-run-api-16aa55-source-to-image-task-rpndl
967
- Time: 2019-07-04T11:03:53.058694712Z
968
- ContentType: application/json
969
- Transport Context,
970
- URI: /
971
- Host: my-sink.default.my-cluster.containers.appdomain.cloud
972
- Method: POST
973
- Data,
974
- {
975
- "taskRun": {
976
- "metadata": {...}
977
- "spec": {
978
- "inputs": {...}
979
- "outputs": {...}
980
- "serviceAccount": "default",
981
- "taskRef": {
982
- "name": "source-to-image",
983
- "kind": "Task"
984
- },
985
- "timeout": "1h0m0s"
986
- },
987
- "status": {...}
988
- }
989
- }
990
- ` ` `
991
-
992
927
# # Why Aren't PipelineResources in Beta?
993
928
994
929
The short answer is that they're not ready to be given a Beta level of support by Tekton's developers. The long answer is, well, longer :
0 commit comments