Skip to content

Commit

Permalink
Allow the user to override the Sample Index URL (#18)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
metcalfc and zzorica committed Jan 24, 2024
1 parent 23a472c commit 65c6c24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

1 comment on commit 65c6c24

@zmzlois
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is moved to the top of the file, should gcp-example also move workspaceTemplatesIndexUrl to config.yaml? if yes I will open PR

Please sign in to comment.