File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -358,17 +358,18 @@ def _icsp(_repository_digest_mirrors: List[Dict[str, Any]]) -> None:
358
358
359
359
brew_registry = "brew.registry.redhat.io"
360
360
source_iib_registry = iib_index_image .split ("/" )[0 ]
361
+ brew_image_repo = iib_index_image .split ("/" )[1 ]
361
362
_iib_index_image = iib_index_image .replace (source_iib_registry , brew_registry )
362
363
icsp = ImageContentSourcePolicy (name = "brew-registry" )
363
364
validating_webhook_configuration = ValidatingWebhookConfiguration (name = "sre-imagecontentpolicies-validation" )
364
365
repository_digest_mirrors : List [Dict [str , Any ]] = [
365
366
{
366
- "source" : source_iib_registry ,
367
- "mirrors" : [brew_registry ],
367
+ "source" : f" { source_iib_registry } / { brew_image_repo } " ,
368
+ "mirrors" : [f" { brew_registry } / { brew_image_repo } " ],
368
369
},
369
370
{
370
- "source" : "registry.redhat.io" ,
371
- "mirrors" : [brew_registry ],
371
+ "source" : f "registry.redhat.io/ { brew_image_repo } " ,
372
+ "mirrors" : [f" { brew_registry } / { brew_image_repo } " ],
372
373
},
373
374
]
374
375
You can’t perform that action at this time.
0 commit comments