fix: don't rewrite helm chart URLs pointing to a different host #56
Reference in New Issue
Block a user
Delete Branch "benvin/fix-helm-cross-host-urls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Helm charts like Intel device plugins have download URLs on
github.combut the chart index is served fromintel.github.io. The merger rewrites all URLs through the proxy, constructing:Which proxies to
https://intel.github.io/helm-charts/intel/helm-charts/releases/download/...— a 404.Fix
Compare the download URL host against the remote's base URL host. If they differ, leave the URL as-is so helm downloads directly from the source. Same-host URLs are still rewritten through the proxy.
Also adds
BaseURLtoMemberIndexso the merger has the context it needs, and uses the correct/local/vs/remote/route prefix.