Skip to content

Commit b0cb91a

Browse files
authored
Merge pull request #26595 from adellape/mirror_prune_sentence
Improve sentence & create substeps in pruning proc
2 parents 6a895ff + 1f0f881 commit b0cb91a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

modules/olm-pruning-index-image.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ An index image, based on the Operator Bundle Format, is a containerized snapshot
3131
ifeval::["{context}" != "olm-managing-custom-catalogs"]
3232
When configuring Operator Lifecycle Manager (OLM) to use mirrored content on restricted network {product-title} clusters, use this pruning method if you want to only mirror a subset of Operators from the default catalogs.
3333

34-
For the steps in this procedure, the target registry is an existing mirror registry that is accessible by both your cluster and a workstation with unrestricted network access. This example also shows mirroring the default `{catalog-name}` catalog, but the process is the same for all catalogs.
34+
For the steps in this procedure, the target registry is an existing mirror registry that is accessible by both your cluster and a workstation with unrestricted network access. This example also shows pruning the index image for the default `{catalog-name}` catalog, but the process is the same for all index images.
3535
endif::[]
3636

3737
.Prerequisites
@@ -65,7 +65,9 @@ endif::[]
6565
$ podman login <target_registry>
6666
----
6767

68-
. Run the source index image that you want to prune in a container. For example:
68+
. Determine the list of packages you want to include in your pruned index.
69+
70+
.. Run the source index image that you want to prune in a container. For example:
6971
+
7072
[source,terminal,subs="attributes+"]
7173
----
@@ -83,14 +85,14 @@ Copying blob ae8a0c23f5b1 done
8385
INFO[0000] serving registry database=/database/index.db port=50051
8486
----
8587

86-
. In a separate terminal session, use the `grpcurl` command to get a list of the packages provided by the index:
88+
.. In a separate terminal session, use the `grpcurl` command to get a list of the packages provided by the index:
8789
+
8890
[source,terminal]
8991
----
9092
$ grpcurl -plaintext localhost:50051 api.Registry/ListPackages > packages.out
9193
----
9294

93-
. Inspect the `packages.out` file and identify which package names from this list you want to keep in your pruned index. For example:
95+
.. Inspect the `packages.out` file and identify which package names from this list you want to keep in your pruned index. For example:
9496
+
9597
.Example snippets of packages list
9698
[source,text,subs="attributes+"]
@@ -111,7 +113,7 @@ $ grpcurl -plaintext localhost:50051 api.Registry/ListPackages > packages.out
111113
...
112114
----
113115

114-
. In the terminal session where you executed the `podman run` command, press kbd:[Ctrl] and kbd:[C] to stop the container process.
116+
.. In the terminal session where you executed the `podman run` command, press kbd:[Ctrl] and kbd:[C] to stop the container process.
115117

116118
. Run the following command to prune the source index of all but the specified packages:
117119
+

0 commit comments

Comments
 (0)