Skip to content

Commit

Permalink
export icsp when mce is installed (#46444)
Browse files Browse the repository at this point in the history
  • Loading branch information
heliubj18 authored Dec 6, 2023
1 parent 824aa5a commit da9f91a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ if [ $_configReady -eq 0 ]; then
fi
echo "Configuring the hosting service cluster Succeeded!"

# export icsp for hypershift hostedcluster if needed
oc get imagecontentsourcepolicy -oyaml > /tmp/mgmt_iscp.yaml && yq-go r /tmp/mgmt_iscp.yaml 'items[*].spec.repositoryDigestMirrors' - | sed '/---*/d' > ${SHARED_DIR}/mgmt_iscp.yaml

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

0 comments on commit da9f91a

Please sign in to comment.