From 63a1d3df5435840555ab033e6f3c3106794ed066 Mon Sep 17 00:00:00 2001 From: Skydust Date: Sat, 7 Dec 2024 15:53:40 +0100 Subject: [PATCH] Added debug env --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e17a68c..db3fac0 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,12 +3,15 @@ INPUT_DEPLOYMENT_NAME=$deploymentName set -e - +env echo "Searching kubectl rights in env: KUBERNETES_BASE64_CONF" if [[ -z "$KUBERNETES_BASE64_CONF" ]]; then echo "No kubernetes config found." echo "Encode it in base64 and place it in gitea secrets" + exit 1 fi + +mkdir /root/.kube echo "$KUBERNETES_BASE64_CONF" | base64 -d > "/root/.kube/config" KUBECTL_OPTIONS+=("rollout" "restart" "deployment/${INPUT_DEPLOYMENT_NAME}")