Skip to content

Commit

Permalink
HOSTEDCP-999: Fix incorrect check for CAPI image in ci (#5741)
Browse files Browse the repository at this point in the history
https://issues.redhat.com/browse/HOSTEDCP-999
Incorrectly checked if the the CAPI Agent image in CI
was missing when it should check if it's set.
Affects CI testing disconnected.
  • Loading branch information
CrystalChun committed Nov 28, 2023
1 parent 86a8320 commit 22889d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/operator/capi/deploy_capi_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if [ "${DISCONNECTED}" = "true" ]; then
oc image mirror -a "${PULL_SECRET_FILE}" "${ASSISTED_OPENSHIFT_INSTALL_RELEASE_IMAGE}" "${DISCONNECTED_ASSISTED_OPENSHIFT_INSTALL_RELEASE_IMAGE}"
export ASSISTED_OPENSHIFT_INSTALL_RELEASE_IMAGE="${DISCONNECTED_ASSISTED_OPENSHIFT_INSTALL_RELEASE_IMAGE}"
# 5. mirrored capi agent image to local registry
if [ -z "$PROVIDER_IMAGE" ]
if [ ! -z "$PROVIDER_IMAGE" ]
then
export PROVIDER_LOCAL_IMAGE="${LOCAL_REGISTRY}/localimages/cluster-api-provider-agent:latest"
oc image mirror -a "${PULL_SECRET_FILE}" "${PROVIDER_IMAGE}" "${PROVIDER_LOCAL_IMAGE}"
Expand Down

0 comments on commit 22889d8

Please sign in to comment.