From 4fe134e39c4916fb40d3b0a66ac040bcf8e4b37b Mon Sep 17 00:00:00 2001 From: emalinowski Date: Mon, 6 Jan 2025 11:52:13 -0600 Subject: [PATCH] Update kube-setup-secrets.sh --- gen3/bin/kube-setup-secrets.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gen3/bin/kube-setup-secrets.sh b/gen3/bin/kube-setup-secrets.sh index e51cd5141..61d3e63af 100644 --- a/gen3/bin/kube-setup-secrets.sh +++ b/gen3/bin/kube-setup-secrets.sh @@ -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