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 - <