From 78d13b5304b2240cd6918511b372415e5e298063 Mon Sep 17 00:00:00 2001 From: Ondrej Vasko Date: Tue, 4 Feb 2025 16:12:06 +0100 Subject: [PATCH] helm: explicitly configure helm chart base url Currently helm index configures URLs to charts with relative path (see https://ceph.github.io/csi-charts/index.yaml). Artifactory contains support for virtual repositories. Virtual repositories are able to cache remote repositories and provide offline access to those repositories. In order for this to work correctly, charts must specify absolute base URL to artifacts. This commit adds this base URL using argument for helm index command. URL with previous approach: ```yaml urls: - cephfs/ceph-csi-cephfs-3.13.0.tgz ``` URL with current approach (my personal "lirt" repo was used to test this, the MR specifies correct "ceph" path) ```yaml urls: - https://lirt.github.io/csi-charts/cephfs/ceph-csi-cephfs-3.13.0.tgz ``` Signed-off-by: Ondrej Vasko --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 309cc001f..cfd9d3301 100755 --- a/deploy.sh +++ b/deploy.sh @@ -84,7 +84,7 @@ push_helm_charts() { popd >/dev/null pushd "${CHARTDIR}/csi-charts/docs" >/dev/null - helm repo index . + helm repo index . --url "https://ceph.github.io/csi-charts/" git config user.name "${GITHUB_USER}" git config user.email "${GITHUB_EMAIL}" git add --all :/ && git commit -m "Update for helm charts ${PACKAGE}-${VERSION}"