@@ -35,20 +35,43 @@ endif::[]
3535----
3636$ opm index add \
3737 --bundles <registry>/<namespace>/<new_bundle_image>@sha256:<digest> \//<1>
38- --from-index <registry>/<namespace>/<existing_index_image>:<tag> \//<2>
39- --tag <registry>/<namespace>/<existing_index_image>:<tag> \//<3>
40- --pull-tool podman <4>
38+ --from-index <registry>/<namespace>/<existing_index_image>:<existing_tag> \//<2>
39+ --tag <registry>/<namespace>/<existing_index_image>:<updated_tag> \//<3>
40+ --pull-tool podman //<4>
41+ ----
42+ <1> The `--bundles` flag specifies a comma-separated list of additional bundle images to add to the index.
43+ <2> The `--from-index` flag specifies the previously pushed index.
44+ <3> The `--tag` flag specifies the image tag to apply to the updated index image.
45+ <4> The `--pull-tool` flag specifies the tool used to pull container images.
46+ +
47+ where:
48+ +
49+ [small]
50+ --
51+ `<registry>`:: Specifies the hostname of the registry, such as `quay.io` or `mirror.example.com`.
52+ `<namespace>`:: Specifies the namespace of the registry, such as `ocs-dev` or `abc`.
53+ `<new_bundle_image>`:: Specifies the new bundle image to add to the registry, such as `ocs-operator`.
54+ `<digest>`:: Specifies the SHA image ID, or digest, of the bundle image, such as `c7f11097a628f092d8bad148406aa0e0951094a03445fd4bc0775431ef683a41`.
55+ `<existing_index_image>`:: Specifies the previously pushed image, such as `abc-redhat-operator-index`.
56+ `<existing_tag>`:: Specifies a previously pushed image tag, such as `pass:a[{product-version}]`.
57+ `<updated_tag>`:: Specifies the image tag to apply to the updated index image, such as `pass:a[{product-version}].1`.
58+ --
59+ +
60+ .Example command
61+ [source,terminal,subs="attributes+"]
62+ ----
63+ $ opm index add \
64+ --bundles quay.io/ocs-dev/ocs-operator@sha256:c7f11097a628f092d8bad148406aa0e0951094a03445fd4bc0775431ef683a41 \
65+ --from-index mirror.example.com/abc/abc-redhat-operator-index:{product-version} \
66+ --tag mirror.example.com/abc/abc-redhat-operator-index:{product-version}.1 \
67+ --pull-tool podman
4168----
42- <1> A comma-separated list of additional bundle images to add to the index.
43- <2> The existing index that was previously pushed.
44- <3> The image tag that you want the updated index image to have.
45- <4> A tool that pulls images for `opm index add`.
4669
4770. Push the updated index image:
4871+
4972[source,terminal]
5073----
51- $ podman push <registry>/<namespace>/<existing_index_image>:<tag >
74+ $ podman push <registry>/<namespace>/<existing_index_image>:<updated_tag >
5275----
5376
5477ifeval::["{context}" == "olm-restricted-networks"]
0 commit comments