From af71eade22ce91cb57305ccdc2a40a64a950f6c4 Mon Sep 17 00:00:00 2001 From: Elouan Martinet Date: Fri, 19 Feb 2021 11:43:17 +0100 Subject: [PATCH] Act as a real entrypoint --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 8118d04..807c901 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,9 @@ #!/bin/sh -e +if [ -n "$1" ]; then + exec "$@" +fi + if [ -z "$NAMESPACES" ]; then NAMESPACES=$(kubectl get ns -o jsonpath={.items[*].metadata.name}) fi