fix(e2e): remove 'local' keyword outside function context
The 'local' bash keyword can only be used inside a function. Using it at top-level of a run: block causes 'local: can only be used in a function' error and exits the script with code 1. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -68,7 +68,7 @@ jobs:
|
||||
done
|
||||
echo ""
|
||||
echo "=== In-cluster service account check ==="
|
||||
local in_cluster=false
|
||||
in_cluster=false
|
||||
if [ -f /var/run/secrets/kubernetes.io/serviceaccount/token ]; then
|
||||
echo "Service account token present — in-cluster mode available"
|
||||
echo "KUBERNETES_SERVICE_HOST=${KUBERNETES_SERVICE_HOST:-}"
|
||||
|
||||
Reference in New Issue
Block a user