Skip to content

Commit 432138e

Browse files
authored
Merge pull request #76796 from RichardHoch/scan_dep_images
MIG-1287: Adding scanning for deprecated images to the 'Updating deprecated internal images' troubleshooting procedure
2 parents 9a6afae + 84298d8 commit 432138e

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

modules/migration-updating-deprecated-internal-images.adoc

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,39 @@ If an {product-title} 3 image is deprecated in {product-title} {product-version}
2525
The {product-registry} is exposed by default on {product-title} 4.
2626

2727
. If you are using insecure registries, add your registry host values to the `[registries.insecure]` section of `/etc/container/registries.conf` to ensure that `podman` does not encounter a TLS verification error.
28-
. Log in to the {product-title} 3 registry:
28+
. Log in to the {product-title} 3 registry by running the following command:
2929
+
3030
[source,terminal]
3131
----
3232
$ podman login -u $(oc whoami) -p $(oc whoami -t) --tls-verify=false <registry_url>:<port>
3333
----
3434

35-
. Log in to the {product-title} 4 registry:
35+
. Log in to the {product-title} 4 registry by running the following command:
3636
+
3737
[source,terminal]
3838
----
3939
$ podman login -u $(oc whoami) -p $(oc whoami -t) --tls-verify=false <registry_url>:<port>
4040
----
4141

42-
. Pull the {product-title} 3 image:
42+
. Pull the {product-title} 3 image by running the following command:
4343
+
4444
[source,terminal]
4545
----
4646
$ podman pull <registry_url>:<port>/openshift/<image>
4747
----
4848

49-
. Tag the {product-title} 3 image for the {product-title} 4 registry:
49+
. Scan the {product-title} 3 image for deprecated namespaces by running the following command:
50+
+
51+
[source,terminal]
52+
----
53+
$ oc get bc --all-namespaces --template='range .items
54+
"BuildConfig:" .metadata.namespace/.metadata.name =>
55+
"\t""ImageStream(FROM):" .spec.strategy.sourceStrategy.from.namespace/.spec.strategy.sourceStrategy.from.name
56+
"\t""ImageStream(TO):" .spec.output.to.namespace/.spec.output.to.name
57+
end'
58+
----
59+
60+
. Tag the {product-title} 3 image for the {product-title} 4 registry by running the following command:
5061
+
5162
[source,terminal]
5263
----
@@ -56,15 +67,15 @@ $ podman tag <registry_url>:<port>/openshift/<image> \ <1>
5667
<1> Specify the registry URL and port for the {product-title} 3 cluster.
5768
<2> Specify the registry URL and port for the {product-title} 4 cluster.
5869

59-
. Push the image to the {product-title} 4 registry:
70+
. Push the image to the {product-title} 4 registry by running the following command:
6071
+
6172
[source,terminal]
6273
----
6374
$ podman push <registry_url>:<port>/openshift/<image> <1>
6475
----
6576
<1> Specify the {product-title} 4 cluster.
6677

67-
. Verify that the image has a valid image stream:
78+
. Verify that the image has a valid image stream by running the following command:
6879
+
6980
[source,terminal]
7081
----

0 commit comments

Comments
 (0)