From 65c6c2451b00544b7751d9b64fe9fcb3ac3f19fe Mon Sep 17 00:00:00 2001 From: Chad Metcalf Date: Wed, 24 Jan 2024 06:06:55 -0800 Subject: [PATCH] Allow the user to override the Sample Index URL (#18) We need to put this in to the setup script for now. Otherwise, anytime the user runs this script they'll have to manually update the helm and thats going to be error prone. Eventually this and any of the other variables should go into the admin panel. Co-authored-by: Zoran Zorica --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 541efa6..07721af 100755 --- a/setup.sh +++ b/setup.sh @@ -14,6 +14,7 @@ K3S_VERSION="v1.28.5+k3s1" LONGHORN_VERSION="1.5.3" INGRESS_NGINX_VERSION="4.8.3" WATKINS_VERSION="2.87.1" +TEMPLATE_INDEX_URL="https://raw.githubusercontent.com/daytonaio/samples-index/main/index.json" display_logo() { echo -e "\n" @@ -343,7 +344,7 @@ ingress: secretName: "$URL-tls" components: dashboard: - workspaceTemplatesIndexUrl: https://raw.githubusercontent.com/daytonaio-templates/index/main/templates.json + workspaceTemplatesIndexUrl: $TEMPLATE_INDEX_URL workspaceVolumeInit: pullImages: storageClassName: "longhorn"