Skip to content

Commit

Permalink
Act as a real entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Elouan Martinet committed Sep 30, 2021
1 parent d369c6e commit af71ead
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit af71ead

Please sign in to comment.