From 387fb82b4d67b5a1f3526b67fdeba6b68e50717b Mon Sep 17 00:00:00 2001 From: lamai93 Date: Tue, 4 Dec 2018 10:25:48 +0100 Subject: [PATCH] Fixed tests once again. --- scripts/kube_create_license_key_secret.sh | 13 +++++++------ tests/test_util.go | 4 +++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/kube_create_license_key_secret.sh b/scripts/kube_create_license_key_secret.sh index 372e17254..962f36d40 100755 --- a/scripts/kube_create_license_key_secret.sh +++ b/scripts/kube_create_license_key_secret.sh @@ -1,18 +1,19 @@ #!/bin/sh -LICENSE=$2 NS=$1 -if [ -z $LICENSE ]; then - echo "No enterprise license set" - exit 0 -fi - if [ -z $NS ]; then echo "Specify a namespace argument" exit 1 fi +if [ -z $2 ]; then + echo "No enterprise license set" + exit 0 +fi + +LICENSE=$(echo -n "$2" | base64 -w 0) + kubectl apply -f - <