Skip to content

Commit 0bb52e7

Browse files
author
Steven Smith
committed
Adds note to Image Stream Tags docs
1 parent 96b2aae commit 0bb52e7

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

modules/images-cluster-sample-imagestream-import.adoc

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ You can ensure that you always have access to the latest versions of the Cluster
1313
+
1414
[source,terminal]
1515
----
16-
oc get imagestreams -nopenshift
16+
oc get imagestreams -n openshift
1717
----
1818

1919
. Fetch the tags for every imagestream in the `openshift` namespace by running the following command:
2020
+
2121
[source,terminal]
2222
----
23-
$ oc get is <image-stream-name> -o jsonpath="{range .spec.tags[*]}{.name}{'\t'}{.from.name}{'\n'}{end}" -nopenshift
23+
$ oc get is <image-stream-name> -o jsonpath="{range .spec.tags[*]}{.name}{'\t'}{.from.name}{'\n'}{end}" -n openshift
2424
----
2525
+
2626
For example:
2727
+
2828
[source,terminal]
2929
----
30-
$ oc get is ubi8-openjdk-17 -o jsonpath="{range .spec.tags[*]}{.name}{'\t'}{.from.name}{'\n'}{end}" -nopenshift
30+
$ oc get is ubi8-openjdk-17 -o jsonpath="{range .spec.tags[*]}{.name}{'\t'}{.from.name}{'\n'}{end}" -n openshift
3131
----
3232
+
3333
.Example output
@@ -41,31 +41,40 @@ $ oc get is ubi8-openjdk-17 -o jsonpath="{range .spec.tags[*]}{.name}{'\t'}{.fro
4141
+
4242
[source,terminal]
4343
----
44-
$ oc tag <repository/image> <image-stream-name:tag> --scheduled -nopenshift
44+
$ oc tag <repository/image> <image-stream-name:tag> --scheduled -n openshift
4545
----
4646
+
4747
For example:
4848
+
4949
[source,terminal]
5050
----
51-
$ oc tag registry.access.redhat.com/ubi8/openjdk-17:1.11 ubi8-openjdk-17:1.11 --scheduled -nopenshift
52-
$ oc tag registry.access.redhat.com/ubi8/openjdk-17:1.12 ubi8-openjdk-17:1.12 --scheduled -nopenshift
51+
$ oc tag registry.access.redhat.com/ubi8/openjdk-17:1.11 ubi8-openjdk-17:1.11 --scheduled -n openshift
5352
----
5453
+
55-
This command causes {product-title} to periodically update this particular image stream tag. This period is a cluster-wide setting set to 15 minutes by default.
54+
[source,terminal]
55+
----
56+
$ oc tag registry.access.redhat.com/ubi8/openjdk-17:1.12 ubi8-openjdk-17:1.12 --scheduled -n openshift
57+
----
58+
+
59+
[NOTE]
60+
====
61+
Using the `--scheduled` flag is recommended to periodically re-import an image when working with an external container image registry. The `--scheduled` flag helps to ensure that you receive the latest versions and security updates. Additionally, this setting allows the import process to automatically retry if a temporary error initially prevents the image from being imported.
62+
63+
By default, scheduled image imports occur every 15 minutes cluster-wide.
64+
====
5665

5766
. Verify the scheduling status of the periodic import by running the following command:
5867
+
5968
[source,terminal]
6069
----
61-
oc get imagestream <image-stream-name> -o jsonpath="{range .spec.tags[*]}Tag: {.name}{'\t'}Scheduled: {.importPolicy.scheduled}{'\n'}{end}" -nopenshift
70+
oc get imagestream <image-stream-name> -o jsonpath="{range .spec.tags[*]}Tag: {.name}{'\t'}Scheduled: {.importPolicy.scheduled}{'\n'}{end}" -n openshift
6271
----
6372
+
6473
For example:
6574
+
6675
[source,terminal]
6776
----
68-
oc get imagestream ubi8-openjdk-17 -o jsonpath="{range .spec.tags[*]}Tag: {.name}{'\t'}Scheduled: {.importPolicy.scheduled}{'\n'}{end}" -nopenshift
77+
oc get imagestream ubi8-openjdk-17 -o jsonpath="{range .spec.tags[*]}Tag: {.name}{'\t'}Scheduled: {.importPolicy.scheduled}{'\n'}{end}" -n openshift
6978
----
7079
+
7180
.Example output

0 commit comments

Comments
 (0)