From 7f7636ea960c2e1981d4ca9266cad0bddb53bb7f Mon Sep 17 00:00:00 2001 From: koslib Date: Sun, 2 Jan 2022 21:56:12 +0200 Subject: [PATCH 1/2] Apply the correct permissions to kubeconfig file so that it's not world-readable --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index b03edcc..bee19dd 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,7 @@ set -e echo ${KUBE_CONFIG_DATA} | base64 -d > kubeconfig export KUBECONFIG="${PWD}/kubeconfig" +chmod 600 ${PWD}/kubeconfig if [-z $INPUT_PLUGINS] then From 5113bf5d231d55e847490c326c6428766826ea19 Mon Sep 17 00:00:00 2001 From: koslib Date: Sun, 2 Jan 2022 22:01:54 +0200 Subject: [PATCH 2/2] Changed how empty-string check runs --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index bee19dd..6e02a78 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,7 +6,7 @@ echo ${KUBE_CONFIG_DATA} | base64 -d > kubeconfig export KUBECONFIG="${PWD}/kubeconfig" chmod 600 ${PWD}/kubeconfig -if [-z $INPUT_PLUGINS] +if [[ -n "${INPUT_PLUGINS// /}" ]] then plugins=$(echo $INPUT_PLUGINS | tr ",")