Fix defaul namespace if not in config

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-12-06 09:34:16 +00:00
parent 8752ee0267
commit 6ab3606e20
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -3,6 +3,7 @@
set -e set -e
NAMESPACE="$(kubectl config view --minify --output 'jsonpath={..namespace}')" NAMESPACE="$(kubectl config view --minify --output 'jsonpath={..namespace}')"
NAMESPACE=${NAMESPACE:-default}
LABEL="" LABEL=""
ALL_NAMESPACES=false ALL_NAMESPACES=false