Skip to content

Commit 597c362

Browse files
authored
Merge pull request #37744 from sounix000/update-triggers-content-RHDEVDOCS-3260
RHDEVDOCS-3260 Changed triggers API version to v1beta1
2 parents 164208d + 4d5de19 commit 597c362

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

modules/op-about-pipelinerun.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// *openshift_pipelines/op-creating-applications-with-cicd-pipelines.adoc
44

55
[id="about-pipelinerun_{context}"]
6-
= PipelineRun
6+
= Pipeline run
77

8-
A _PipelineRun_ is the running instance of a Pipeline. It instantiates a Pipeline for execution with specific inputs, outputs, and execution parameters on a cluster. A corresponding TaskRun is created for each Task automatically in the PipelineRun.
8+
A _pipeline run_ is the running instance of a pipeline. It instantiates a pipeline for execution with specific inputs, outputs, and execution parameters on a cluster. A corresponding task run is created for each task automatically in the pipeline run.
99

10-
All the Tasks in the Pipeline are executed in the defined sequence until all Tasks are successful or a Task fails. The `status` field tracks and stores the progress of each TaskRun in the PipelineRun for monitoring and auditing purpose.
10+
All the tasks in the pipeline are executed in the defined sequence until all tasks are successful or a task fails. The `status` field tracks and stores the progress of each task run in the pipeline run for monitoring and auditing purpose.
1111

12-
The following example shows a PipelineRun to run the `build-and-deploy` Pipeline with relevant resources and parameters:
12+
The following example runs the `build-and-deploy` pipeline with relevant resources and parameters:
1313
[source,yaml]
1414
----
1515
apiVersion: tekton.dev/v1beta1 <1>
@@ -36,9 +36,9 @@ spec:
3636
requests:
3737
storage: 500Mi
3838
----
39-
<1> PipelineRun API version `v1beta1`.
39+
<1> Pipeline run API version `v1beta1`.
4040
<2> Specifies the type of Kubernetes object. In this example, `PipelineRun`.
41-
<3> Unique name to identify this PipelineRun.
42-
<4> Name of the Pipeline to be run. In this example, `build-and-deploy`.
43-
<5> Specifies the list of parameters required to run the Pipeline.
44-
<6> Workspace used by the PipelineRun.
41+
<3> Unique name to identify this pipeline run.
42+
<4> Name of the pipeline to be run. In this example, `build-and-deploy`.
43+
<5> Specifies the list of parameters required to run the pipeline.
44+
<6> Workspace used by the pipeline run.

modules/op-about-triggers.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following example shows a code snippet of the `TriggerBinding` resource, whi
1818
+
1919
[source,yaml]
2020
----
21-
apiVersion: triggers.tekton.dev/v1alpha1 <1>
21+
apiVersion: triggers.tekton.dev/v1beta1 <1>
2222
kind: TriggerBinding <2>
2323
metadata:
2424
name: vote-app <3>
@@ -32,7 +32,7 @@ spec:
3232
value: $(body.head_commit.id)
3333
----
3434
+
35-
<1> The API version of the `TriggerBinding` resource. In this example, `v1alpha1`.
35+
<1> The API version of the `TriggerBinding` resource. In this example, `v1beta1`.
3636
<2> Specifies the type of Kubernetes object. In this example, `TriggerBinding`.
3737
<3> Unique name to identify the `TriggerBinding` resource.
3838
<4> List of parameters which will be extracted from the received event payload and passed to the `TriggerTemplate` resource. In this example, the Git repository URL, name, and revision are extracted from the body of the event payload.
@@ -44,7 +44,7 @@ The following example shows a code snippet of a `TriggerTemplate` resource, whic
4444
+
4545
[source,yaml,subs="attributes+"]
4646
----
47-
apiVersion: triggers.tekton.dev/v1alpha1 <1>
47+
apiVersion: triggers.tekton.dev/v1beta1 <1>
4848
kind: TriggerTemplate <2>
4949
metadata:
5050
name: vote-app <3>
@@ -87,13 +87,13 @@ spec:
8787
storage: 500Mi
8888
----
8989
+
90-
<1> The API version of the `TriggerTemplate` resource. In this example, `v1alpha1`.
90+
<1> The API version of the `TriggerTemplate` resource. In this example, `v1beta1`.
9191
<2> Specifies the type of Kubernetes object. In this example, `TriggerTemplate`.
9292
<3> Unique name to identify the `TriggerTemplate` resource.
9393
<4> Parameters supplied by the `TriggerBinding` resource.
9494
<5> List of templates that specify the way resources must be created using the parameters received through the `TriggerBinding` or `EventListener` resources.
9595

96-
* The `Trigger` resource combines the `TriggerBinding` and `TriggerTemplate` resources, and optionally, the `interceptors` event processor.
96+
* The `Trigger` resource combines the `TriggerBinding` and `TriggerTemplate` resources, and optionally, the `interceptors` event processor.
9797
+
9898
Interceptors process all the events for a specific platform that runs before the `TriggerBinding` resource. You can use interceptors to filter the payload, verify events, define and test trigger conditions, and implement other useful processing. Interceptors use secret for event verification. After the event data passes through an interceptor, it then goes to the trigger before you pass the payload data to the trigger binding. You can also use an interceptor to modify the behavior of the associated trigger referenced in the `EventListener` specification.
9999
//image::op-triggers.png[]
@@ -102,7 +102,7 @@ The following example shows a code snippet of a `Trigger` resource, named `vote-
102102
+
103103
[source,yaml]
104104
----
105-
apiVersion: triggers.tekton.dev/v1alpha1 <1>
105+
apiVersion: triggers.tekton.dev/v1beta1 <1>
106106
kind: Trigger <2>
107107
metadata:
108108
name: vote-trigger <3>
@@ -112,11 +112,11 @@ spec:
112112
- ref:
113113
name: "github" <5>
114114
params: <6>
115-
- name: "secretRef"
115+
- name: "secretRef"
116116
value:
117117
secretName: github-secret
118118
secretKey: secretToken
119-
- name: "eventTypes"
119+
- name: "eventTypes"
120120
value: ["push"]
121121
bindings:
122122
- ref: vote-app <7>
@@ -132,7 +132,7 @@ stringData:
132132
secretToken: "1234567"
133133
----
134134
+
135-
<1> The API version of the `Trigger` resource. In this example, `v1alpha1`.
135+
<1> The API version of the `Trigger` resource. In this example, `v1beta1`.
136136
<2> Specifies the type of Kubernetes object. In this example, `Trigger`.
137137
<3> Unique name to identify the `Trigger` resource.
138138
<4> Service account name to be used.
@@ -148,7 +148,7 @@ The following example shows an `EventListener` resource, which references the `T
148148
+
149149
[source,yaml]
150150
----
151-
apiVersion: triggers.tekton.dev/v1alpha1 <1>
151+
apiVersion: triggers.tekton.dev/v1beta1 <1>
152152
kind: EventListener <2>
153153
metadata:
154154
name: vote-app <3>
@@ -158,7 +158,7 @@ spec:
158158
- triggerRef: vote-trigger <5>
159159
----
160160
+
161-
<1> The API version of the `EventListener` resource. In this example, `v1alpha1`.
161+
<1> The API version of the `EventListener` resource. In this example, `v1beta1`.
162162
<2> Specifies the type of Kubernetes object. In this example, `EventListener`.
163163
<3> Unique name to identify the `EventListener` resource.
164164
<4> Service account name to be used.

modules/op-adding-triggers.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Triggers enable pipelines to respond to external GitHub events, such as push eve
1313
+
1414
[source,yaml]
1515
----
16-
apiVersion: triggers.tekton.dev/v1alpha1
16+
apiVersion: triggers.tekton.dev/v1beta1
1717
kind: TriggerBinding
1818
metadata:
1919
name: vote-app
@@ -45,7 +45,7 @@ $ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/{p
4545
+
4646
[source,yaml,subs="attributes+"]
4747
----
48-
apiVersion: triggers.tekton.dev/v1alpha1
48+
apiVersion: triggers.tekton.dev/v1beta1
4949
kind: TriggerTemplate
5050
metadata:
5151
name: vote-app
@@ -108,7 +108,7 @@ $ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/{p
108108
+
109109
[source,yaml]
110110
----
111-
apiVersion: triggers.tekton.dev/v1alpha1
111+
apiVersion: triggers.tekton.dev/v1beta1
112112
kind: Trigger
113113
metadata:
114114
name: vote-trigger
@@ -138,7 +138,7 @@ $ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/{p
138138
+
139139
[source,yaml]
140140
----
141-
apiVersion: triggers.tekton.dev/v1alpha1
141+
apiVersion: triggers.tekton.dev/v1beta1
142142
kind: EventListener
143143
metadata:
144144
name: vote-app
@@ -153,7 +153,7 @@ Alternatively, if you have not defined a trigger custom resource, add the bindin
153153
+
154154
[source,yaml]
155155
----
156-
apiVersion: triggers.tekton.dev/v1alpha1
156+
apiVersion: triggers.tekton.dev/v1beta1
157157
kind: EventListener
158158
metadata:
159159
name: vote-app

modules/pipelines-document-attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
//
1010
:pipelines-title: Red Hat OpenShift Pipelines
1111
:pipelines-shortname: Pipelines
12-
:pipelines-ver: pipelines-1.5
12+
:pipelines-ver: pipelines-1.6

0 commit comments

Comments
 (0)