Skip to content

Commit

Permalink
Change -n to ! -z for token check
Browse files Browse the repository at this point in the history
  • Loading branch information
mproffitt committed Apr 25, 2024
1 parent 8f51e7b commit c9a3db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions localstack-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DEFAULT_PROVIDERS=(
"function-go-templating"
)

if [ -n $LOCALSTACK_AUTH_TOKEN ]; then
if [ ! -z $LOCALSTACK_AUTH_TOKEN ]; then
DEFAULT_PROVIDERS+=(
"rds"
"eks"
Expand Down Expand Up @@ -265,7 +265,7 @@ header "Installing localstack..."
yq -ie 'del(.extraEnvVars[] | select(.name == "LOCALSTACK_AUTH_TOKEN"))' localstack-values.yaml
yq -ie '.image.repository = "localstack/localstack"' localstack-values.yaml

if [ -n "$LOCALSTACK_AUTH_TOKEN" ]; then
if [ ! -z "$LOCALSTACK_AUTH_TOKEN" ]; then
echo " [localstack] Installing localstack-pro..."
echo " [localstack] Creating localstack-auth-token secret..."
kubectl create secret generic localstack-auth-token --namespace localstack-system \
Expand Down
5 changes: 0 additions & 5 deletions localstack-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ extraEnvVars:
secretKeyRef:
name: localstack-auth-token
key: token
- name: LOCALSTACK_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: localstack-auth-token
key: token
debug: true
mountDind:
enabled: true
Expand Down

0 comments on commit c9a3db6

Please sign in to comment.