Skip to content

Commit

Permalink
oc-mirror optimizations
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Feb 13, 2025
1 parent 2608c9d commit 774a764
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dev-infrastructure/templates/image-sync.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ var acmMirrorConfig = {
channels: [
{
name: 'stable-2.7'
minVersion: '2.7.0'
maxVersion: '2.7.0'
}
]
}
Expand All @@ -359,6 +361,8 @@ var acmMirrorConfig = {
channels: [
{
name: 'release-2.12'
minVersion: '2.12.0'
maxVersion: '2.12.0'
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion image-sync/oc-mirror/mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo ${IMAGE_SET_CONFIG} | base64 -d | yq eval -P > ${IMAGE_SET_CONFIG_FILE}
API_VERSION=$(yq eval '.apiVersion' ${IMAGE_SET_CONFIG_FILE})

if echo "$API_VERSION" | grep -q "^mirror.openshift.io/v2"; then
ADDITIONAL_FLAGS="--workspace file:///oc-mirror-workspace --v2"
ADDITIONAL_FLAGS="--workspace file:///oc-mirror-workspace --v2 --parallel-images 1 --parallel-layers 1"
else
ADDITIONAL_FLAGS="--continue-on-error"
fi
Expand Down
4 changes: 4 additions & 0 deletions image-sync/oc-mirror/test/acm-image-set-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ mirror:
- name: multicluster-engine
channels:
- name: stable-2.7
minVersion: "2.7.0"
maxVersion: "2.7.0"
- name: advanced-cluster-management
channels:
- name: release-2.12
minVersion: "2.12.0"
maxVersion: "2.12.0"

0 comments on commit 774a764

Please sign in to comment.