Skip to content

Commit

Permalink
onprem: patch deployment from ocp_release_image
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 5, 2024
1 parent 60dca17 commit 5396fcb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions aicli_parameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{% set workers = extra_workers + workers %}
{% endif %}
base_dns_domain: {{ domain }}
manifests: manifests
version: {{ tag }}
api_vip: {{ api_ip }}
ingress_vip: {{ ingress_ip }}
Expand Down
8 changes: 8 additions & 0 deletions registries.conf.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
unqualified-search-registries = ["registry.access.redhat.com", "docker.io"]
short-name-mode = ""

[[registry]]
prefix = ""
location = "quay.io/edge-infrastructure"

[[registry.mirror]]
location = "$REGISTRY/edge-infrastructure"
pull-from-mirror = "all"

[[registry]]
prefix = ""
location = "quay.io/openshift-release-dev/ocp-release"
Expand Down
6 changes: 5 additions & 1 deletion scripts/03_disconnected_mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ echo -e "ocp_release_image: $REGISTRY_NAME:$REGISTRY_PORT/openshift/release-imag
# echo -e "pull_secret: /root/disconnected_pull.json" >> /root/aicli_parameters.yml
# fi

mkdir /root/containers
export REGISTRY=$REGISTRY_NAME:$REGISTRY_PORT
envsubst < /root/registries.conf.sample > /root/containers/registries.conf

cp /root/machineconfigs/99-operatorhub.yaml /root/manifests

{% for image in disconnected_extra_images + ['quay.io/edge-infrastructure/assisted-installer-agent:latest', 'quay.io/edge-infrastructure/assisted-installer:latest'] %}
{% for image in disconnected_extra_images + ['quay.io/edge-infrastructure/assisted-installer-agent:latest', 'quay.io/edge-infrastructure/assisted-installer:latest', 'quay.io/edge-infrastructure/assisted-installer-controller:latest'] %}
echo "Syncing image {{ image }}"
/root/bin/sync_image.sh {{ image }}
{% endfor %}

0 comments on commit 5396fcb

Please sign in to comment.