Skip to content

Commit 385c1ec

Browse files
committed
TP3 updates
YAML updates operator in proxy envt operator change review edits review edit 2 review edits
1 parent 4e2ed7a commit 385c1ec

12 files changed

+105
-66
lines changed

cicd/pipelines/creating-applications-with-cicd-pipelines.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ To create a full-fledged, self-serving CI/CD pipeline for an application, you mu
1919

2020
This section uses the `pipelines-tutorial` example to demonstrate the preceding tasks. The example uses a simple application which consists of:
2121

22-
* A front-end interface, `vote-ui`, with the source code in the link:https://github.com/openshift-pipelines/vote-ui/tree/release-tech-preview-2[`ui-repo`] Git repository.
23-
* A back-end interface, `vote-api`, with the source code in the link:https://github.com/openshift-pipelines/vote-api/tree/release-tech-preview-2[`api-repo`] Git repository.
24-
* The `apply-manifests` and `update-deployment` tasks in the link:https://github.com/openshift/pipelines-tutorial/tree/release-tech-preview-2[`pipelines-tutorial`] Git repository.
22+
* A front-end interface, `vote-ui`, with the source code in the link:https://github.com/openshift-pipelines/vote-ui/tree/pipelines-1.3[`ui-repo`] Git repository.
23+
* A back-end interface, `vote-api`, with the source code in the link:https://github.com/openshift-pipelines/vote-api/tree/pipelines-1.3[`api-repo`] Git repository.
24+
* The `apply-manifests` and `update-deployment` tasks in the link:https://github.com/openshift/pipelines-tutorial/tree/pipelines-1.3[`pipelines-tutorial`] Git repository.
2525

2626
== Prerequisites
2727

2828
* You have access to an {product-title} cluster.
2929
* You have installed xref:../../cicd/pipelines/installing-pipelines.adoc#installing-pipelines[OpenShift Pipelines] using the {pipelines-title} Operator listed in the OpenShift OperatorHub. Once installed, it is applicable to the entire cluster.
3030
* You have installed xref:../../cli_reference/tkn_cli/installing-tkn.adoc#installing-tkn[OpenShift Pipelines CLI].
31-
* You have forked the front-end link:https://github.com/openshift-pipelines/vote-ui/tree/release-tech-preview-2[`ui-repo`] and back-end link:https://github.com/openshift-pipelines/vote-api/tree/release-tech-preview-2[`api-repo`] Git repositories using your GitHub ID, and have Administrator access to these repositories.
32-
* Optional: You have cloned the link:https://github.com/openshift/pipelines-tutorial/tree/release-tech-preview-2[`pipelines-tutorial`] Git repository.
31+
* You have forked the front-end link:https://github.com/openshift-pipelines/vote-ui/tree/pipelines-1.3[`ui-repo`] and back-end link:https://github.com/openshift-pipelines/vote-api/tree/pipelines-1.3[`api-repo`] Git repositories using your GitHub ID, and have Administrator access to these repositories.
32+
* Optional: You have cloned the link:https://github.com/openshift/pipelines-tutorial/tree/pipelines-1.3[`pipelines-tutorial`] Git repository.
3333

3434

3535
include::modules/op-creating-project-and-checking-pipeline-service-account.adoc[leveloffset=+1]

cicd/pipelines/installing-pipelines.adoc

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ toc::[]
88

99
This guide walks cluster administrators through the process of installing the {pipelines-title} Operator to an {product-title} cluster.
1010

11-
[NOTE]
12-
====
13-
The {pipelines-title} Operator is supported for installation in a restricted network environment. For more information, see xref:../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks].
14-
====
15-
1611
// Prerequisites for installing OpenShift Operator
1712
[discrete]
1813
== Prerequisites
@@ -37,7 +32,21 @@ include::modules/op-installing-pipelines-operator-in-web-console.adoc[leveloffse
3732

3833
include::modules/op-installing-pipelines-operator-using-the-cli.adoc[leveloffset=+1]
3934

35+
// {pipelines-title} Operator in a restricted environment
36+
37+
include::modules/op-pipelines-operator-in-restricted-environment.adoc[leveloffset=+1]
4038

41-
.Additional Resources
39+
40+
== Additional Resources
4241

4342
* You can learn more about installing Operators on {product-title} in the xref:../../operators/admin/olm-adding-operators-to-cluster.adoc#olm-adding-operators-to-a-cluster[adding Operators to a cluster] section.
43+
44+
* For more information on using pipelines in a restricted environment see:
45+
46+
** xref:../../creating-applications-with-cicd-pipelines.adoc#op-mirroring-images-to-run-pipelines-in-restricted-environment_creating-applications-with-cicd-pipelines[Mirroring images to run pipelines in a restricted environment]
47+
48+
** xref:../../openshift_images/configuring-samples-operator.adoc#samples-operator-restricted-network-install[Configuring Samples Operator for a restricted cluster]
49+
50+
** xref:../../installing/install_config/installing-restricted-networks-preparations.adoc#installation-about-mirror-registry_installing-restricted-networks-preparations[Creating a cluster with a mirrored registry]
51+
52+
** xref:../../cli_reference/developer_cli_odo/using_odo_in_a_restricted_environment/creating-and-deploying-a-component-to-the-disconnected-cluster.adoc#mirroring-a-supported-builder-image_creating-and-deploying-a-component-to-the-disconnected-cluster[Mirroring a supported builder image]

modules/op-about-pipelinerun.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
- name: deployment-name
2424
value: vote-api
2525
- name: git-url
26-
value: http://github.com/openshift-pipelines/vote-api.git
26+
value: https://github.com/openshift-pipelines/vote-api.git
2727
- name: IMAGE
2828
value: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-api
2929
workspaces: <6>

modules/op-about-pipelines.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A `Pipeline` resource definition consists of a number of fields or attributes, w
1111

1212
The following example shows the `build-and-deploy` pipeline, which builds an application image from a Git repository using the `buildah` `ClusterTask` resource:
1313

14-
[source,yaml]
14+
[source,yaml,subs="attributes+"]
1515
----
1616
apiVersion: tekton.dev/v1beta1 <1>
1717
kind: Pipeline <2>
@@ -30,7 +30,7 @@ spec: <4>
3030
- name: git-revision
3131
type: string
3232
description: revision to be used from repo of the code for deployment
33-
default: "release-tech-preview-3"
33+
default: "{pipelines-ver}"
3434
- name: IMAGE
3535
type: string
3636
description: image to be build from the code

modules/op-about-tasks.adoc

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,23 @@ kind: Task <2>
1818
metadata:
1919
name: apply-manifests <3>
2020
spec: <4>
21-
params:
22-
- default: k8s
23-
description: The directory in source that contains yaml manifests
24-
name: manifest_dir
25-
type: string
26-
steps:
27-
- args:
28-
- |-
29-
echo Applying manifests in $(inputs.params.manifest_dir) directory
30-
oc apply -f $(inputs.params.manifest_dir)
31-
echo -----------------------------------
32-
command:
33-
- /bin/bash
34-
- -c
35-
image: quay.io/openshift/origin-cli:latest
36-
name: apply
37-
workingDir: /workspace/source
3821
workspaces:
3922
- name: source
23+
params:
24+
- name: manifest_dir
25+
description: The directory in source that contains yaml manifests
26+
type: string
27+
default: "k8s"
28+
steps:
29+
- name: apply
30+
image: image-registry.openshift-image-registry.svc:5000/openshift/cli:latest
31+
workingDir: /workspace/source
32+
command: ["/bin/bash", "-c"]
33+
args:
34+
- |-
35+
echo Applying manifests in $(inputs.params.manifest_dir) directory
36+
oc apply -f $(inputs.params.manifest_dir)
37+
echo -----------------------------------
4038
----
4139
<1> Task API version `v1beta1`.
4240
<2> Specifies the type of Kubernetes object. In this example, `Task`.

modules/op-about-triggers.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ spec:
4545

4646

4747
The following example shows a code snippet of a `TriggerTemplate` resource, which creates a pipeline run using the Git repository information received from the `TriggerBinding` resource you just created:
48-
[source,yaml]
48+
49+
[source,yaml,subs="attributes+"]
4950
----
5051
apiVersion: triggers.tekton.dev/v1alpha1 <1>
5152
kind: TriggerTemplate <2>
@@ -57,7 +58,7 @@ spec:
5758
description: The git repository url
5859
- name: git-revision
5960
description: The git revision
60-
default: master
61+
default: {pipelines-ver}
6162
- name: git-repo-name
6263
description: The name of the deployment to be created / patched
6364
@@ -110,7 +111,7 @@ spec:
110111
bindings:
111112
- ref: vote-app <5>
112113
template: <6>
113-
name: vote-app
114+
ref: vote-app
114115
----
115116
<1> The API version of the `Trigger` resource. In this example, `v1alpha1`.
116117
<2> Specifies the type of Kubernetes object. In this example, `Trigger`.

modules/op-adding-triggers.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ spec:
117117
bindings:
118118
- ref: vote-app
119119
template:
120-
name: vote-app
120+
ref: vote-app
121121
----
122122

123123
. Create the `Trigger` resource:

modules/op-constructing-pipelines-using-pipeline-builder.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[id="op-constructing-pipelines-using-pipeline-builder_{context}"]
66
= Constructing Pipelines using the Pipeline Builder
77

8-
In the *Developer* perspective of the console, you can use the *+Add* -> *Pipeline* -> *Pipeline Builder* option to:
8+
In the *Developer* perspective of the console, you can use the *+Add* -> *Pipeline* -> *Pipeline builder* option to:
99

1010
* Configure pipelines using either the *Pipeline builder* or the *YAML view*.
1111
* Construct a pipeline flow using existing tasks and cluster tasks. When you install the OpenShift Pipelines Operator, it adds reusable pipeline cluster tasks to your cluster.
@@ -16,7 +16,7 @@ In the *Developer* perspective of the console, you can use the *+Add* -> *Pipeli
1616

1717
.Procedure
1818

19-
. In the *+Add* view of the *Developer* perspective, click the *Pipeline* tile to see the *Pipeline Builder* page.
19+
. In the *+Add* view of the *Developer* perspective, click the *Pipeline* tile to see the *Pipeline builder* page.
2020
. Configure the pipeline using either the *Pipeline builder* view or the *YAML view*.
2121
+
2222
[NOTE]

modules/op-installing-pipelines-operator-in-web-console.adoc

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,50 @@
44
[id="op-installing-pipelines-operator-in-web-console_{context}"]
55
= Installing the {pipelines-title} Operator in web console
66

7-
You can install {pipelines-title} using the Operator listed in the {product-title} OperatorHub. When you install the {pipelines-title} Operator, the Custom Resources (CRs) required for the Pipelines configuration are automatically installed along with the Operator.
7+
You can install {pipelines-title} using the Operator listed in the {product-title} OperatorHub. When you install the {pipelines-title} Operator, the custom resources (CRs) required for the pipelines configuration are automatically installed along with the Operator.
8+
9+
The default Operator custom resource definition (CRD) `config.operator.tekton.dev` is now replaced by `tektonconfigs.operator.tekton.dev`. In addition, the Operator provides the following additional CRDs to individually manage OpenShift Pipelines components:
10+
`tektonpipelines.operator.tekton.dev`, `tektontriggers.operator.tekton.dev` and `tektonaddons.operator.tekton.dev`.
11+
12+
If you have OpenShift Pipelines already installed on your cluster, the existing installation is seamlessly upgraded. The Operator will replace the instance of `config.operator.tekton.dev` on your cluster with an instance of `tektonconfigs.operator.tekton.dev` and additional objects of the other CRDs as necessary.
13+
14+
[WARNING]
15+
====
16+
If you manually changed your existing installation, such as, changing the target namespace in the `config.operator.tekton.dev` CRD instance by making changes to the `resource name - cluster` field, then the upgrade path is not smooth. In such cases, the recommended workflow is to uninstall your installation and reinstall the {pipelines-title} Operator.
17+
====
18+
19+
The {pipelines-title} Operator now provides the option to choose the components that you want to install by specifying profiles as part of the `TektonConfig` CR. The `TektonConfig` CR is automatically installed when the Operator is installed.
20+
The supported profiles are:
21+
22+
* Basic: This installs only Tekton pipelines.
23+
* Default: This installs Tekton pipeline and Tekton triggers.
24+
* All: This is the default profile used when the `TektonConfig` CR is installed. This profile installs all of the Tekton components: Tekton Pipelines, Tekton Triggers, Tekton Addons(which include `ClusterTasks`, `ClusterTriggerBindings`, `ConsoleCLIDownload`, `ConsoleQuickStart` and `ConsoleYAMLSample` resources).
825

926
[discrete]
1027
.Procedure
1128

1229
. In the *Administrator* perspective of the web console, navigate to *Operators* -> *OperatorHub*.
1330

14-
. Use the *Filter by keyword* box to search for `{pipelines-title} Operator` in the catalog. Click the *OpenShift Pipelines Operator* tile.
15-
+
16-
[NOTE]
17-
====
18-
Ensure that you do not select the *Community* version of the *OpenShift Pipelines Operator*.
19-
====
20-
+
21-
//image::op-installed-tile.png[]
22-
//Remove the note below once the community operator is removed from OperatorHub
31+
. Use the *Filter by keyword* box to search for `{pipelines-title}` Operator in the catalog. Click the *{pipelines-title}* Operator tile.
2332

24-
. Read the brief description about the Operator on the *{pipelines-title} Operator* page. Click *Install*.
25-
+
26-
//image::op-install-subscription.png[]
33+
. Read the brief description about the Operator on the *{pipelines-title}* Operator page. Click *Install*.
2734

2835
. On the *Install Operator* page:
36+
+
37+
.. Select *All namespaces on the cluster (default)* for the *Installation Mode*. This mode installs the Operator in the default `openshift-operators` namespace, which enables the Operator to watch and be made available to all namespaces in the cluster.
2938

30-
.. Select *All namespaces on the cluster (default)* for the *Installation Mode*. This mode installs the Operator in the default `openshift-operators` namespace, which enables the Operator to watch and be made available to all namespaces in the cluster.
39+
.. Select *Automatic* for the *Approval Strategy*. This ensures that the future upgrades to the Operator are handled automatically by the Operator Lifecycle Manager (OLM). If you select the *Manual* approval strategy, OLM creates an update request. As a cluster administrator, you must then manually approve the OLM update request to update the Operator to the new version.
3140

32-
.. Select *Automatic* for the *Approval Strategy*. This ensures that the future upgrades to the Operator are handled automatically by the Operator Lifecycle Manager (OLM). If you select the *Manual* approval strategy, OLM creates an update request. As a cluster administrator, you must then manually approve the OLM update request to update the Operator to the new version.
33-
.. Select an *Update Channel*.
34-
*** The *ocp-<4.x>* channel enables installation of the latest stable release of the {pipelines-title} Operator.
35-
*** The *preview* channel enables installation of the latest preview version of the {pipelines-title} Operator, which may contain features that are not yet available from the 4.x update channel.
36-
+
37-
. Click *Install*. You will see the Operator listed on the *Installed Operators* page.
41+
.. Select an *Update Channel*.
42+
43+
*** The *Stable* channel enables installation of the latest stable release of the {pipelines-title} Operator.
44+
*** The *preview* channel enables installation of the latest preview version of the {pipelines-title} Operator, which may contain features that are not yet available from the *Stable* channel.
45+
46+
. Click *Install*. You will see the Operator listed on the *Installed Operators* page.
3847
+
3948
[NOTE]
4049
====
4150
The Operator is installed automatically into the `openshift-operators` namespace.
4251
====
43-
52+
+
4453
. Verify that the *Status* is set to *Succeeded Up to date* to confirm successful installation of {pipelines-title} Operator.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Module included in the following assemblies:
2+
//
3+
// */openshift_pipelines/installing-pipelines.adoc
4+
[id="op-pipelines-operator-in-restricted-environment_{context}"]
5+
= {pipelines-title} Operator in a restricted environment
6+
7+
The {pipelines-title} Operator enables support for installation of pipelines in a restricted network environment.
8+
9+
The Operator installs a proxy webhook that sets the proxy environment variables in the containers of the pod created by tekton-controllers based on the `cluster` proxy object. It also sets the proxy environment variables in the `TektonPipelines`, `TektonTriggers`, `Controllers`, `Webhooks`, and `Operator Proxy Webhook` resources.
10+
11+
By default, the proxy webhook is disabled for the `openshift-pipelines` namespace. To disable it for any other namespace, you can add the `operator.tekton.dev/disable-proxy: true` label to the `namespace` object.

0 commit comments

Comments
 (0)