Skip to content

Commit

Permalink
Update kube-setup-secrets.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
emalinowski authored Jan 6, 2025
1 parent 206c752 commit 4fe134e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gen3/bin/kube-setup-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ if [[ "$creds" != null ]]; then
echo ${i} >> "$credsFile"
done
g3kubectl delete secret aws-es-proxy || true
g3kubectl create secret generic aws-es-proxy "--from-file=credentials=${credsFile}" --from-literal=aws_access_key_id=$(cat creds.json| jq -r .es.aws_access_key_id) --from-literal=aws_secret_access_key=$(cat creds.json| jq -r .es.aws_secret_access_key)
g3kubectl create secret generic aws-es-proxy \
"--from-file=credentials=${credsFile}" \
--from-literal=aws_access_key_id=$(cat creds.json | jq -r .es.aws_access_key_id) \
--from-literal=aws_secret_access_key=$(cat creds.json | jq -r .es.aws_secret_access_key)
else
echo "WARNING: creds.json does not include AWS elastic search credentials - not initializing aws-es-proxy secret"
fi
Expand Down

0 comments on commit 4fe134e

Please sign in to comment.