From 8a957762861b001c525389b499c9868e376410e4 Mon Sep 17 00:00:00 2001 From: dyn Date: Thu, 18 Dec 2025 14:06:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20chore:=20add=20KUBECONFIG=20chec?= =?UTF-8?q?k=20(and=20reword=20it)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dyn --- bonus/scripts/argo-install.sh | 5 ++++- p3/scripts/argo-install.sh | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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