mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
152 lines
7.2 KiB
Plaintext
152 lines
7.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * extensions/ce/managing-ce.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
|
|
[id="olmv1-downloading-bundle-manifests_{context}"]
|
|
= Downloading the bundle manifests of an extension
|
|
|
|
Use the `opm` CLI tool to download the bundle manifests of the extension that you want to install. Use the CLI tool or text editor of your choice to view the manifests and find the required permissions to install and manage the extension.
|
|
|
|
.Prerequisites
|
|
|
|
* You have access to an {product-title} cluster using an account with `cluster-admin` permissions.
|
|
* You have decided which extension you want to install.
|
|
* You have installed the `opm` CLI tool.
|
|
|
|
.Procedure
|
|
|
|
. Inspect the available versions and images of the extension you want to install by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ opm render <registry_url>:<tag_or_version> | \
|
|
jq -cs '.[] | select( .schema == "olm.bundle" ) | \
|
|
select( .package == "<extension_name>") | \
|
|
{"name":.name, "image":.image}'
|
|
----
|
|
+
|
|
.Example command
|
|
[%collapsible]
|
|
====
|
|
[source,terminal,subs="attributes"]
|
|
----
|
|
$ opm render registry.redhat.io/redhat/redhat-operator-index:v{product-version} | \
|
|
jq -cs '.[] | select( .schema == "olm.bundle" ) | \
|
|
select( .package == "openshift-pipelines-operator-rh") | \
|
|
{"name":.name, "image":.image}'
|
|
----
|
|
====
|
|
+
|
|
.Example output
|
|
[%collapsible]
|
|
====
|
|
[source,text]
|
|
----
|
|
{"name":"openshift-pipelines-operator-rh.v1.14.3","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:3f64b29f6903981470d0917b2557f49d84067bccdba0544bfe874ec4412f45b0"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.14.4","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:dd3d18367da2be42539e5dde8e484dac3df33ba3ce1d5bcf896838954f3864ec"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.14.5","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:f7b19ce26be742c4aaa458d37bc5ad373b5b29b20aaa7d308349687d3cbd8838"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.15.0","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:22be152950501a933fe6e1df0e663c8056ca910a89dab3ea801c3bb2dc2bf1e6"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.15.1","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:64afb32e3640bb5968904b3d1a317e9dfb307970f6fda0243e2018417207fd75"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.15.2","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:8a593c1144709c9aeffbeb68d0b4b08368f528e7bb6f595884b2474bcfbcafcd"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.16.0","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:a46b7990c0ad07dae78f43334c9bd5e6cba7b50ca60d3f880099b71e77bed214"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.16.1","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:29f27245e93b3f605647993884751c490c4a44070d3857a878d2aee87d43f85b"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.16.2","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:2037004666526c90329f4791f14cb6cc06e8775cb84ba107a24cc4c2cf944649"}
|
|
{"name":"openshift-pipelines-operator-rh.v1.17.0","image":"registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:d75065e999826d38408049aa1fde674cd1e45e384bfdc96523f6bad58a0e0dbc"}
|
|
----
|
|
====
|
|
|
|
. Make a directory to extract the image of the bundle that you want to install by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ mkdir <new_dir>
|
|
----
|
|
|
|
. Change into the directory by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ cd <new_dir>
|
|
----
|
|
|
|
. Find the image reference of the version that you want to install and run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc image extract <full_path_to_registry_image>@sha256:<sha>
|
|
----
|
|
+
|
|
.Example command
|
|
[source,terminal]
|
|
----
|
|
$ oc image extract registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:f7b19ce26be742c4aaa458d37bc5ad373b5b29b20aaa7d308349687d3cbd8838
|
|
----
|
|
|
|
. Change into the `manifests` directory by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ cd manifests
|
|
----
|
|
|
|
. View the contents of the manifests directory by entering the following command. The output lists the manifests of the resources required to install, manage, and operate your extension.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ tree
|
|
----
|
|
+
|
|
.Example output
|
|
[%collapsible]
|
|
====
|
|
[source,text]
|
|
----
|
|
.
|
|
├── manifests
|
|
│ ├── config-logging_v1_configmap.yaml
|
|
│ ├── openshift-pipelines-operator-monitor_monitoring.coreos.com_v1_servicemonitor.yaml
|
|
│ ├── openshift-pipelines-operator-prometheus-k8s-read-binding_rbac.authorization.k8s.io_v1_rolebinding.yaml
|
|
│ ├── openshift-pipelines-operator-read_rbac.authorization.k8s.io_v1_role.yaml
|
|
│ ├── openshift-pipelines-operator-rh.clusterserviceversion.yaml
|
|
│ ├── operator.tekton.dev_manualapprovalgates.yaml
|
|
│ ├── operator.tekton.dev_openshiftpipelinesascodes.yaml
|
|
│ ├── operator.tekton.dev_tektonaddons.yaml
|
|
│ ├── operator.tekton.dev_tektonchains.yaml
|
|
│ ├── operator.tekton.dev_tektonconfigs.yaml
|
|
│ ├── operator.tekton.dev_tektonhubs.yaml
|
|
│ ├── operator.tekton.dev_tektoninstallersets.yaml
|
|
│ ├── operator.tekton.dev_tektonpipelines.yaml
|
|
│ ├── operator.tekton.dev_tektonresults.yaml
|
|
│ ├── operator.tekton.dev_tektontriggers.yaml
|
|
│ ├── tekton-config-defaults_v1_configmap.yaml
|
|
│ ├── tekton-config-observability_v1_configmap.yaml
|
|
│ ├── tekton-config-read-rolebinding_rbac.authorization.k8s.io_v1_clusterrolebinding.yaml
|
|
│ ├── tekton-config-read-role_rbac.authorization.k8s.io_v1_clusterrole.yaml
|
|
│ ├── tekton-operator-controller-config-leader-election_v1_configmap.yaml
|
|
│ ├── tekton-operator-info_rbac.authorization.k8s.io_v1_rolebinding.yaml
|
|
│ ├── tekton-operator-info_rbac.authorization.k8s.io_v1_role.yaml
|
|
│ ├── tekton-operator-info_v1_configmap.yaml
|
|
│ ├── tekton-operator_v1_service.yaml
|
|
│ ├── tekton-operator-webhook-certs_v1_secret.yaml
|
|
│ ├── tekton-operator-webhook-config-leader-election_v1_configmap.yaml
|
|
│ ├── tekton-operator-webhook_v1_service.yaml
|
|
│ ├── tekton-result-read-rolebinding_rbac.authorization.k8s.io_v1_clusterrolebinding.yaml
|
|
│ └── tekton-result-read-role_rbac.authorization.k8s.io_v1_clusterrole.yaml
|
|
├── metadata
|
|
│ ├── annotations.yaml
|
|
│ └── properties.yaml
|
|
└── root
|
|
└── buildinfo
|
|
├── content_manifests
|
|
│ └── openshift-pipelines-operator-bundle-container-v1.16.2-3.json
|
|
└── Dockerfile-openshift-pipelines-pipelines-operator-bundle-container-v1.16.2-3
|
|
----
|
|
====
|
|
|
|
.Next steps
|
|
|
|
* View the contents of the `install.spec.clusterpermissions` stanza of cluster service version (CSV) file in the `manifests` directory using your preferred CLI tool or text editor. The following examples reference the `openshift-pipelines-operator-rh.clusterserviceversion.yaml` file of the {pipelines-title} Operator.
|
|
* Keep this file open as a reference while assigning permissions to the cluster role file in the following procedure.
|