Skip to content

Commit

Permalink
workaround opm render bug by providing custom docker_config location
Browse files Browse the repository at this point in the history
fixes: kiali#6545
  • Loading branch information
jmazzitelli committed Aug 31, 2023
1 parent 1dae15c commit bade4c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make/Makefile.olm.mk
Expand Up @@ -113,7 +113,9 @@ build-olm-index: .ensure-opm-exists cluster-push-olm-bundle
@rm -rf ${OUTDIR}/index
@mkdir -p ${OUTDIR}/index/kiali-index
${OPM} init ${OLM_BUNDLE_PACKAGE} --default-channel=stable --output yaml > ${OUTDIR}/index/kiali-index/index.yaml
${OPM} render $$(if [[ "${OC}" = *"oc" ]]; then echo '--skip-tls-verify'; else echo '--use-http'; fi) ${CLUSTER_OLM_BUNDLE_NAME}:${BUNDLE_VERSION} --output yaml >> ${OUTDIR}/index/kiali-index/index.yaml
@if [ "${DORP}" == "podman" -a -n "$${XDG_RUNTIME_DIR}" ]; then cp "$${XDG_RUNTIME_DIR}/containers/auth.json" "${OUTDIR}/index/kiali-index/config.json"; fi
@if [ -f "${OUTDIR}/index/kiali-index/config.json" ]; then export DOCKER_CONFIG="${OUTDIR}/index/kiali-index"; fi ; ${OPM} render $$(if [[ "${OC}" = *"oc" ]]; then echo '--skip-tls-verify'; else echo '--use-http'; fi) ${CLUSTER_OLM_BUNDLE_NAME}:${BUNDLE_VERSION} --output yaml >> ${OUTDIR}/index/kiali-index/index.yaml
@rm -f ${OUTDIR}/index/kiali-index/config.json
@# We need OLM to pull the index from the internal registry - change the index to only use the internal registry name
sed -i 's|${CLUSTER_REPO}|${CLUSTER_REPO_INTERNAL}|g' ${OUTDIR}/index/kiali-index/index.yaml
@echo "---" >> ${OUTDIR}/index/kiali-index/index.yaml
Expand Down

0 comments on commit bade4c9

Please sign in to comment.