Skip to content

Commit 3bfadac

Browse files
authored
Merge pull request #81789 from subhtk/clid208
CLID 208: Updated ImageSetConfiguration examples to include blockedImages example.
2 parents db47de1 + 2ee895c commit 3bfadac

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

modules/oc-mirror-image-set-config-examples.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,24 @@ mirror:
247247
additionalImages:
248248
- name: registry.redhat.io/ubi9/ubi:latest
249249
----
250+
251+
[discrete]
252+
[id="oc-mirror-image-set-examples-blocked-images_{context}"]
253+
== Use case: Including the `blockedImages` parameters
254+
255+
The following `ImageSetConfiguration` file excludes the images that return `manifest unknown` errors.
256+
257+
This example also shows how to use the `blockedImages` parameter in the `imageSetConfiguration` file to skip mirroring an image that fails to mirror due to an `manifest unknown` error.
258+
259+
.Example `ImageSetConfiguration` file
260+
[source,yaml,subs=attributes+]
261+
----
262+
apiVersion: mirror.openshift.io/v2alpha1
263+
kind: ImageSetConfiguration
264+
mirror:
265+
additionalImages:
266+
- name: registry.redhat.io/ubi8/ubi:latest
267+
- name: registry.redhat.io/ubi8/ubi:fake
268+
blockedImages:
269+
- name: registry.redhat.io/ubi8/ubi:fake
270+
----

0 commit comments

Comments
 (0)