Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Enforcing older version of k3d until we migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
aflinchb committed Oct 23, 2023
1 parent e9549ac commit 140fe28
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .devcontainer/on-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ echo "export AUTH_TYPE=CLI" >> ~/.bashrc
echo "" >> ~/.zshrc
echo "export AUTH_TYPE=CLI" >> ~/.zshrc

# Temporary fix until we migrate to the latest k3d version
echo "Installing k3d version v5.3.0"
wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v5.3.0 bash

# Install k3d > 5.0.1
k3d --version | grep -Eo '^k3d version v5...[1-9]$' > /dev/null 2>&1
if [ $? -ne 0 ]; then
# Means we don't have proper k3d version
# Install v5.0.1
echo "Installing latest k3d"
wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | sudo bash
fi
# k3d --version | grep -Eo '^k3d version v5...[1-9]$' > /dev/null 2>&1
# if [ $? -ne 0 ]; then
# # Means we don't have proper k3d version
# # Install v5.0.1
# echo "Installing latest k3d"
# wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | sudo bash
# fi

# Install Istio
hash istioctl || (echo "Installing istioctl" ; curl -sL https://istio.io/downloadIstioctl | sh - > /dev/null 2>&1; sudo mv ~/.istioctl/bin/istioctl /usr/local/bin)
Expand Down

0 comments on commit 140fe28

Please sign in to comment.