diff --git a/modules/oc-mirror-updating-cluster-manifests-v2.adoc b/modules/oc-mirror-updating-cluster-manifests-v2.adoc index 89f4a2886b..19828fe9df 100644 --- a/modules/oc-mirror-updating-cluster-manifests-v2.adoc +++ b/modules/oc-mirror-updating-cluster-manifests-v2.adoc @@ -51,6 +51,13 @@ Additionally, a YAML file is available in the same directory `working-dir/cluste ---- $ oc get imagedigestmirrorset ---- ++ +To view only the resources created by `oc-mirror`, run the following command: ++ +[source,terminal] +---- +$ oc get imagedigestmirrorset -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}' +---- . Verify that the `ImageTagMirrorSet` resources are successfully installed by running the following command: + @@ -58,6 +65,13 @@ $ oc get imagedigestmirrorset ---- $ oc get imagetagmirrorset ---- ++ +To view only the resources created by `oc-mirror`, run the following command: ++ +[source,terminal] +---- +$ oc get imagetagmirrorset -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}' +---- . Verify that the `CatalogSource` resources are successfully installed by running the following command: + @@ -65,10 +79,24 @@ $ oc get imagetagmirrorset ---- $ oc get catalogsource -n openshift-marketplace ---- ++ +To view only the resources created by `oc-mirror`, run the following command: ++ +[source,terminal] +---- +$ oc get catalogsource -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}' +---- . Verify that the `ClusterCatalog` resources are successfully installed by running the following command: + [source,terminal] ---- $ oc get clustercatalog +---- ++ +To view only the resources created by `oc-mirror`, run the following command: ++ +[source,terminal] +---- +$ oc get clustercatalog -o jsonpath='{.items[?(@.metadata.annotations.createdBy=="oc-mirror v2")].metadata.name}' ---- \ No newline at end of file