Skip to content

Commit ea56bb0

Browse files
Content Updates #36
Content Updates
2 parents 68e378f + ab09472 commit ea56bb0

File tree

10 files changed

+42
-8
lines changed

10 files changed

+42
-8
lines changed

workshop/content/concepts.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
Tekton defines a number of link:https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/[Kubernetes custom resources] as building blocks in order to standardize pipeline concepts and provide a terminology that is consistent across CI/CD solutions. These custom resources are an extension of the Kubernetes API that let users create and interact with these objects using the OpenShift CLI (`oc`), `kubectl`, and other Kubernetes tools.
1+
Tekton defines a number of link:https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/[Kubernetes custom resources]
2+
as building blocks in order to standardize pipeline concepts and provide a terminology
3+
that is consistent across CI/CD solutions. These custom resources are an extension of the
4+
Kubernetes API that let users create and interact with these objects using the OpenShift CLI (`oc`), `kubectl`, and other Kubernetes tools.
25

36
The custom resources needed to define a pipeline are listed below:
47

@@ -16,6 +19,7 @@ In short, in order to create a pipeline, one does the following:
1619
* Create a pipeline and pipeline resources to define your application's delivery pipeline
1720
* Create a pipelinerun to instantiate and invoke the pipeline
1821
19-
For further details on pipeline concepts, refer to the link:https://github.com/tektoncd/pipeline/tree/master/docs#learn-more[Tekton documentation] that provides an excellent guide for understanding various parameters and attributes available for defining `pipelines`.
22+
For further details on pipeline concepts, refer to the link:https://github.com/tektoncd/pipeline/tree/master/docs#learn-more[Tekton documentation]
23+
that provides an excellent guide for understanding various parameters and attributes available for defining pipelines.
2024

2125
In the following sections, you will go through each of the above steps to define and execute a pipeline.

workshop/content/exercises/create-pipeline.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ Each pipeline has a `tasks` property. Under this property, each `task` has a `na
5454
For this pipeline, it has two tasks named `build` and `deploy`. The `taskRef` property under each
5555
task `name` is where the tasks you just created can be specified as part of the pipeline.
5656

57+
A visual that shows how `s2i-nodejs` is part of the pipeline above can be seen below:
58+
59+
image:../images/task-visual.png[s2i-nodejs Visualization]
60+
5761
You might have noticed that there are no references to the nodejs-ex git repository
5862
and its image in the registry. That's because pipelines in Tekton are designed to
5963
be generic and reusable across environments and stages through the application's lifecycle.
@@ -74,6 +78,11 @@ defined between the tasks via `inputs` and `outputs` as well as explicit orders
7478
that are defined via `runAfter`. You'll notice the `deploy` task above has a `runAfter`
7579
property specifying to only execute after the `build` task is complete.
7680

81+
A visualization of the pipeline above is shown below to help illustrate what has been
82+
described so far in this section:
83+
84+
image:../images/pipeline-visual.png[Pipeline Visualization]
85+
7786
Create the Pipeline
7887
-------------------
7988

workshop/content/exercises/serviceaccount.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ later in this workshop. This is how you will connect the `pipeline` service acco
2626
to the pipelinerun.
2727

2828
For reference, you can add the permissions used by `pipeline` to a service account
29-
using the OpenShift CLI (`oc`) commands below:
29+
using the `oc` commands below:
3030

3131
[source,bash]
3232
----

workshop/content/exercises/trigger-pipeline.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ spec:
3333
Under the `spec` property, you'll see the `pipelineRef` property where the pipeline
3434
to be used is specified. You should see the name of the pipeline you created (i.e. `deploy-pipeline`).
3535

36-
Since this pipelinerun will be triggered manually by you using `tkn`, the `trigger`
37-
property is set to `manual`. The `trigger` property is used to specify when the pipeline
38-
should execute. This property is how a webhook can be used to trigger a pipelinerun
39-
via a code commit to a git repository instead of triggering manually.
40-
4136
The last property of the pipelinerun of note is `resources`. This is how the specific
4237
git repository and image registry urls can be entered for the pipelinerun. You'll
4338
see the pipeline resource references you just created in the pipelinerun definition.
124 KB
Loading
76.6 KB
Loading

workshop/content/install-tekton-operator.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Next, you would click on the **Integration & Delivery** category to find the
2222

2323
image:images/operatorhub.png[OpenShift OperatorHub]
2424

25+
Having trouble viewing the photo above? Simply drag the divider that separates the workshop content
26+
you are reading now from the terminal towards the right. This will expand photos to make
27+
them easier to see.
28+
2529
Click on **OpenShift Pipelines Operator**, **Continue**, and then **Install** as
2630
shown below:
2731

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Continuous Integration, Continuous Delivery (CI/CD)
2+
--------------------------------------------------
3+
4+
A continuous integration, continuous delivery (CI/CD) pipeline is an automated expression
5+
of your process for getting software from version control right through to your users and customers.
6+
Every change to your software (i.e. committed in source control) goes through a complex
7+
process on its way to being released. This process involves building the software in a
8+
reliable and repeatable manner as well as progressing the built software (called a "build")
9+
through multiple stages of testing and deployment.
10+
11+
Kubernetes
12+
----------
13+
14+
Kubernetes is an open-source system for automating deployment, scaling, and management
15+
of containerized applications.
16+
17+
As OpenShift is a platform based on Kubernetes, there will be Kubernetes concepts
18+
used throughout this workshop. The workshop assumes that attendees will have knowledge
19+
of Kubernetes fundamental concepts.

workshop/modules.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
modules:
2+
workshop-introduction:
3+
name: Workshop Introduction
24
workshop-overview:
35
name: Workshop Overview
46
concepts:

workshop/workshop.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: OpenShift Pipelines with Tekton
22

33
modules:
44
activate:
5+
- workshop-introduction
56
- workshop-overview
67
- concepts
78
- install-tekton-operator

0 commit comments

Comments
 (0)