Skip to content

Commit

Permalink
MCE: adjust hypershift-mce-install step to support disconnected OVERRIDE
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangquanLi930 committed Dec 26, 2024
1 parent 88e54a4 commit 8dd3fe2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ tests:
env:
LVM_OPERATOR_SUB_CHANNEL: stable-4.18
MCE_VERSION: "2.8"
OVERRIDE_HO_IMAGE: quay.io/hypershift/hypershift-operator:latest
workflow: hypershift-mce-agent-disconnected-conformance
- as: e2e-agent-disconnected-ovn-dualstack-metal3-conformance
cron: 0 20 * * *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,21 @@ echo "wait for addon to Available"
oc wait --timeout=5m --for=condition=Available -n local-cluster ManagedClusterAddOn/hypershift-addon
oc wait --timeout=5m --for=condition=Degraded=False -n local-cluster ManagedClusterAddOn/hypershift-addon
if [[ ${OVERRIDE_HO_IMAGE} ]] ; then
if [[ $MCE_QE_CATALOG == "true" ]]; then
oc apply -f - <<EOF
apiVersion: operator.openshift.io/v1alpha1
kind: ImageContentSourcePolicy
metadata:
name: hypershift-repo
spec:
repositoryDigestMirrors:
- mirrors:
- $(head -n 1 "${SHARED_DIR}/mirror_registry_url" | sed 's/5000/6001/g')/hypershift
source: quay.io/hypershift
EOF
echo "Waiting for the new ImageContentSourcePolicy to be updated on machines"
oc wait clusteroperators/machine-config --for=condition=Upgradeable=true --timeout=25m
fi
oc apply -f - <<EOF
apiVersion: v1
kind: ConfigMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ ref:
documentation: If true, the QE catalog will be used to create MCE
- name: OVERRIDE_HO_IMAGE
default: ""
documentation: "Override the HyperShift operator image. If the default is an empty string, this will not override."
documentation: |-
Override the HyperShift operator image. If the default is an empty string, this will not override.
If in disconnected env also need to set MCE_QE_CATALOG: "true"
E.g: quay.io/hypershift/hypershift-operator:latest
commands: hypershift-mce-install-commands.sh
resources:
requests:
Expand Down

0 comments on commit 8dd3fe2

Please sign in to comment.