Skip to content

Commit

Permalink
RHDEVDOCS-5518: Documenting Pipelines templates in the admin console
Browse files Browse the repository at this point in the history
  • Loading branch information
abrennan89 committed Jul 24, 2023
1 parent b7d8614 commit 809578b
Show file tree
Hide file tree
Showing 17 changed files with 118 additions and 65 deletions.
4 changes: 2 additions & 2 deletions _topic_maps/_topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1883,8 +1883,8 @@ Topics:
File: remote-pipelines-tasks-resolvers
- Name: Using Pipelines as Code
File: using-pipelines-as-code
- Name: Working with OpenShift Pipelines using the Developer perspective
File: working-with-pipelines-using-the-developer-perspective
- Name: Working with OpenShift Pipelines in the web console
File: working-with-pipelines-web-console
- Name: Customizing configurations in the TektonConfig custom resource
File: customizing-configurations-in-the-tektonconfig-cr
- Name: Reducing resource consumption of OpenShift Pipelines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ include::modules/op-validating-pull-requests-using-GitHub-interceptors.adoc[leve
== Additional resources

* To include {pac} along with the application source code in the same repository, see xref:../../cicd/pipelines/using-pipelines-as-code.adoc#using-pipelines-as-code[Using {pac}].
* For more details on pipelines in the *Developer* perspective, see the xref:../../cicd/pipelines/working-with-pipelines-using-the-developer-perspective.adoc#working-with-pipelines-using-the-developer-perspective[working with pipelines in the *Developer* perspective] section.
* For more details on pipelines in the *Developer* perspective, see the xref:../../cicd/pipelines/working-with-pipelines-web-console.adoc#working-with-pipelines-web-console[working with pipelines in the web console] section.
* To learn more about Security Context Constraints (SCCs), see the xref:../../authentication/managing-security-context-constraints.adoc#managing-pod-security-policies[Managing Security Context Constraints] section.
* For more examples of reusable tasks, see the link:https://github.com/openshift/pipelines-catalog[OpenShift Catalog] repository. Additionally, you can also see the Tekton Catalog in the Tekton project.
* To install and deploy a custom instance of Tekton Hub for reusable tasks and pipelines, see xref:../../cicd/pipelines/using-tekton-hub-with-openshift-pipelines.adoc#using-tekton-hub-with-openshift-pipelines[Using {tekton-hub} with {pipelines-title}].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ include::modules/op-annotations-for-automatic-pruning-taskruns-pipelineruns.adoc

* xref:../../cicd/pipelines/authenticating-pipelines-using-git-secret.adoc#op-configuring-ssh-authentication-for-git_authenticating-pipelines-using-git-secret[Configuring SSH authentication for Git]
* xref:../../cicd/pipelines/managing-nonversioned-and-versioned-cluster-tasks.adoc#managing-nonversioned-and-versioned-cluster-tasks[Managing non-versioned and versioned cluster tasks]
* xref:../../cicd/pipelines/working-with-pipelines-using-the-developer-perspective.adoc#using-custom-pipeline-template-for-git-import_working-with-pipelines-using-the-developer-perspective[Using a custom pipeline template for creating and deploying an application from a Git repository]
* xref:../../cicd/pipelines/working-with-pipelines-web-console.adoc#using-custom-pipeline-template-for-git-import_working-with-pipelines-web-console[Using a custom pipeline template for creating and deploying an application from a Git repository]
* xref:../../applications/pruning-objects.adoc#pruning-objects[Pruning objects to reclaim resources]

This file was deleted.

51 changes: 51 additions & 0 deletions cicd/pipelines/working-with-pipelines-web-console.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
:_content-type: ASSEMBLY
[id="working-with-pipelines-web-console"]
= Working with {pipelines-title} in the web console
include::_attributes/common-attributes.adoc[]
:context: working-with-pipelines-web-console

toc::[]

You can use the *Administrator* or *Developer* perspectives to create and modify `Pipeline`, `PipelineRun`, and `Repository` objects from the *Pipelines* page in the {product-title} web console.
You can also use the *+Add* page in the *Developer* perspective of the web console to create CI/CD pipelines for your software delivery process.

// Dev console
include::modules/odc-pipelines-abstract.adoc[leveloffset=+1]

[discrete]
[id="prerequisites_working-with-pipelines-web-console"]
=== Prerequisites

* You have access to an {product-title} cluster and have switched to xref:../../web_console/web-console-overview.adoc#about-developer-perspective_web-console-overview[the *Developer* perspective].
* You have the xref:../../cicd/pipelines/installing-pipelines.adoc#installing-pipelines[{pipelines-shortname} Operator installed] in your cluster.
* You are a cluster administrator or a user with create and edit permissions.
* You have created a project.

include::modules/op-constructing-pipelines-using-pipeline-builder.adoc[leveloffset=+2]

include::modules/op-creating-pipelines-along-with-applications.adoc[leveloffset=+2]

include::modules/odc-adding-a-GitHub-repository-containing-pipelines.adoc[leveloffset=+2]

include::modules/op-interacting-with-pipelines-using-the-developer-perspective.adoc[leveloffset=+2]

include::modules/op-using-custom-pipeline-template-for-git-import.adoc[leveloffset=+2]

include::modules/op-starting-pipelines-from-pipelines-view.adoc[leveloffset=+2]

include::modules/op-starting-pipelines-from-topology-view.adoc[leveloffset=+2]

include::modules/op-interacting-pipelines-from-topology-view.adoc[leveloffset=+2]

include::modules/op-editing-pipelines.adoc[leveloffset=+2]

include::modules/op-deleting-pipelines.adoc[leveloffset=+2]

[role="_additional-resources"]
[id="additional-resources_working-with-pipelines-web-console"]
=== Additional resources

* xref:../../cicd/pipelines/using-tekton-hub-with-openshift-pipelines.adoc#using-tekton-hub-with-openshift-pipelines[Using Tekton Hub with {pipelines-shortname}]

// Admin console
include::modules/op-creating-pipeline-templates-admin-console.adoc[leveloffset=+1]
Binary file added images/import-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="op-constructing-pipelines-using-pipeline-builder_{context}"]
Expand Down
40 changes: 40 additions & 0 deletions modules/op-creating-pipeline-templates-admin-console.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Module included in the following assemblies:
//
// * cicd/pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="op-creating-pipeline-templates-admin-console_{context}"]
= Creating pipeline templates in the Administrator perspective

As a cluster administrator, you can create pipeline templates which developers can reuse when they create a pipeline on the cluster.

.Prerequisites

* You have access to an {product-title} cluster with cluster administrator permissions, and have switched to the *Administrator* perspective.
* You have installed the {pipelines-shortname} Operator in your cluster.
.Procedure

. Navigate to the *Pipelines* page to view existing pipeline templates.

. Click the image:../images/import-icon.png[title="Import"] icon to go to the *Import YAML* page.

. Add the YAML for your pipeline template. The template must include the following information:
+
[source,yaml]
----
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
# ...
namespace: openshift # <1>
labels:
pipeline.openshift.io/runtime: <runtime> # <2>
pipeline.openshift.io/type: <pipeline-type> # <3>
# ...
----
<1> The template must be created in the `openshift` namespace.
<2> The template must contain the `pipeline.openshift.io/runtime` label. The accepted runtime values for this label are `nodejs`, `golang`, `dotnet`, `java`, `php`, `ruby`, `perl`, `python`, `nginx`, and `httpd`.
<3> The template must contain the `pipeline.openshift.io/type:` label. The accepted type values for this label are `openshift`, `knative`, and `kubernetes`.

. Click *Create*. After the pipeline has been created, you are taken to the *Pipeline details* page, where you can view information about or edit your pipeline.
2 changes: 1 addition & 1 deletion modules/op-creating-pipelines-along-with-applications.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: CONCEPT
[id="op-creating-pipelines-along-with-applications_{context}"]
Expand Down
2 changes: 1 addition & 1 deletion modules/op-deleting-pipelines.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="op-deleting-pipelines_{context}"]
Expand Down
2 changes: 1 addition & 1 deletion modules/op-editing-pipelines.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="op-editing-pipelines_{context}"]
Expand Down
2 changes: 1 addition & 1 deletion modules/op-interacting-pipelines-from-topology-view.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: CONCEPT
[id="op-interacting-pipelines_from_topology_view{context}"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Ths module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="op-interacting-with-pipelines-using-the-developer-perspective_{context}"]
Expand Down
14 changes: 14 additions & 0 deletions modules/op-odc-pipelines-abstract.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Module included in the following assemblies:
//
// * cicd/pipelines/working-with-pipelines-web-console.adoc

:_content-type: CONCEPT
[id="op-odc-pipelines-abstract_{context}"]
= Working with {pipelines-title} in the Developer perspective

In the *Developer* perspective, you can access the following options for creating pipelines from the *+Add* page:

* Use the *+Add* -> *Pipeline* -> *Pipeline builder* option to create customized pipelines for your application.
* Use the *+Add* -> *From Git* option to create pipelines using pipeline templates and resources while creating an application.
After you create the pipelines for your application, you can view and visually interact with the deployed pipelines in the *Pipelines* view. You can also use the *Topology* view to interact with the pipelines created using the *From Git* option. You must apply custom labels to pipelines created using the *Pipeline builder* to see them in the *Topology* view.
2 changes: 1 addition & 1 deletion modules/op-starting-pipelines-from-pipelines-view.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="op-starting-pipelines_from_pipelines_view_{context}"]
Expand Down
2 changes: 1 addition & 1 deletion modules/op-starting-pipelines-from-topology-view.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift_pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="op-starting-pipelines_from_topology_view{context}"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is included in the following assembly:
//
// *openshift-docs/cicd/pipelines/working-with-pipelines-using-the-developer-perspective.adoc
// *openshift-docs/cicd/pipelines/working-with-pipelines-web-console.adoc

:_content-type: PROCEDURE
[id="using-custom-pipeline-template-for-git-import_{context}"]
Expand Down

0 comments on commit 809578b

Please sign in to comment.