diff --git a/bonus/scripts/argo-install.sh b/bonus/scripts/argo-install.sh index 736ab1a..2fdf673 100755 --- a/bonus/scripts/argo-install.sh +++ b/bonus/scripts/argo-install.sh @@ -1,7 +1,10 @@ #!/usr/bin/env sh if [ -z "$KUBECONFIG" ]; then - echo "KUBECONFIG is not set" + echo "KUBECONFIG is not set!" + echo + echo "You can add it to your .bashrc or .zshrc:" + echo '> export KUBECONFIG="$HOME/.kube/config"' exit 1 fi diff --git a/p3/scripts/argo-install.sh b/p3/scripts/argo-install.sh index 990db09..332628e 100755 --- a/p3/scripts/argo-install.sh +++ b/p3/scripts/argo-install.sh @@ -1,5 +1,13 @@ #!/usr/bin/env sh +if [ -z "$KUBECONFIG" ]; then + echo "KUBECONFIG is not set!" + echo + echo "You can add it to your .bashrc or .zshrc:" + echo '> export KUBECONFIG="$HOME/.kube/config"' + exit 1 +fi + k3d cluster create inception-of-things # Setup a metrics-server to prevent dumb errors