Skip to content

Commit

Permalink
Don't do expensive helm repo update when starting terminal (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac committed Aug 27, 2020
1 parent 008570b commit 4843986
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/containers/kube-terminal/kubeconsole.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ RESET="\033[0m"
BOLD="\033[1m"
DIM="\033[2m"

echo -e "${BOLD}${GREEN}SUSE Stratos Console${RESET}"
echo ""
echo -e "${CYAN}Kubernetes Terminal${RESET}"
echo -e "${CYAN}Stratos Kubernetes Terminal${RESET}"
echo ""

# Only do these on first run
Expand Down Expand Up @@ -51,7 +49,9 @@ if [ ! -f "/stratos/.firstrun" ]; then
if [ -f "${HOME}/.stratos/helm-setup" ]; then
echo "Setting up Helm repositories ..."
source "${HOME}/.stratos/helm-setup" > /dev/null
helm repo update 2>&1 > /dev/null

# helm repo update can take a while, so get the user to do that if they want to use helm
echo -e "You may need to run ${CYAN}helm repo update${RESET} to update your repositories before using Helm"
echo ""
fi

Expand All @@ -73,5 +73,5 @@ touch "/stratos/.firstrun"
unset `compgen -A variable | grep KUBERNETES`

echo
echo -e "Ready - ${CYAN}kubectl${RESET} and ${CYAN}helm${RESET} commands are available"
echo -e "${CYAN}kubectl${RESET} and ${CYAN}helm${RESET} commands are available"
echo ""

0 comments on commit 4843986

Please sign in to comment.