Skip to content

Commit 2725a4a

Browse files
authored
Merge pull request #94503 from subhtk/osdocs13458
OSDOCS#13458: Updated verification steps of cluster resources to add new commands
2 parents e699f94 + ce3b48f commit 2725a4a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

modules/oc-mirror-updating-cluster-manifests-v2.adoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,52 @@ Additionally, a YAML file is available in the same directory `working-dir/cluste
5151
----
5252
$ oc get imagedigestmirrorset
5353
----
54+
+
55+
To view only the resources created by `oc-mirror`, run the following command:
56+
+
57+
[source,terminal]
58+
----
59+
$ oc get imagedigestmirrorset -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}'
60+
----
5461

5562
. Verify that the `ImageTagMirrorSet` resources are successfully installed by running the following command:
5663
+
5764
[source,terminal]
5865
----
5966
$ oc get imagetagmirrorset
6067
----
68+
+
69+
To view only the resources created by `oc-mirror`, run the following command:
70+
+
71+
[source,terminal]
72+
----
73+
$ oc get imagetagmirrorset -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}'
74+
----
6175

6276
. Verify that the `CatalogSource` resources are successfully installed by running the following command:
6377
+
6478
[source,terminal]
6579
----
6680
$ oc get catalogsource -n openshift-marketplace
6781
----
82+
+
83+
To view only the resources created by `oc-mirror`, run the following command:
84+
+
85+
[source,terminal]
86+
----
87+
$ oc get catalogsource -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}'
88+
----
6889

6990
. Verify that the `ClusterCatalog` resources are successfully installed by running the following command:
7091
+
7192
[source,terminal]
7293
----
7394
$ oc get clustercatalog
95+
----
96+
+
97+
To view only the resources created by `oc-mirror`, run the following command:
98+
+
99+
[source,terminal]
100+
----
101+
$ oc get clustercatalog -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}'
74102
----

0 commit comments

Comments
 (0)