Skip to content

Commit

Permalink
Added quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
garutilorenzo committed Jul 19, 2023
1 parent 25ebeaf commit d952f6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubeadm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ generate_aws_secrets(){
CERT=$(kubeadm init phase upload-certs --upload-certs | tail -n 1)
echo $CERT > /tmp/kubeadm_cert.txt

hash_arn=$(aws secretsmanager list-secrets --filter Key=name,Values=$HASH_NAME | jq -r .SecretList[0].ARN)
cert_arn=$(aws secretsmanager list-secrets --filter Key=name,Values=$CERT_NAME | jq -r .SecretList[0].ARN)
token_arn=$(aws secretsmanager list-secrets --filter Key=name,Values=$TOKEN_NAME | jq -r .SecretList[0].ARN)
hash_arn=$(aws secretsmanager list-secrets --filter Key="name",Values="$HASH_NAME" | jq -r '.SecretList[0].ARN')
cert_arn=$(aws secretsmanager list-secrets --filter Key="name",Values="$CERT_NAME" | jq -r '.SecretList[0].ARN')
token_arn=$(aws secretsmanager list-secrets --filter Key="name",Values="$TOKEN_NAME" | jq -r '.SecretList[0].ARN')

aws secretsmanager update-secret --secret-id $hash_arn --secret-string file:///tmp/ca.txt
aws secretsmanager update-secret --secret-id $cert_arn --secret-string file:///tmp/kubeadm_cert.txt
Expand Down

0 comments on commit d952f6c

Please sign in to comment.