Skip to content

Commit

Permalink
Read account & container name from env
Browse files Browse the repository at this point in the history
  • Loading branch information
amitlicht committed Mar 7, 2024
1 parent e59ad19 commit 23e43c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/code-examples/azure-iam-aks/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ spec:
- name: client
image: mcr.microsoft.com/azure-cli
command: [ "/bin/sh", "-c", "--" ]
args: [ "while true; do az login --federated-token \"$(cat $AZURE_FEDERATED_TOKEN_FILE)\" --service-principal -u $AZURE_CLIENT_ID -t $AZURE_TENANT_ID; az storage blob list --container test --account-name amitlichttest --auth-mode login; sleep 1; echo 'Client - The time is:'; curl -v --silent google.com 2>&1 | grep 'Date:'; sleep 2; done" ]
env:
- name: AZURE_STORAGE_ACCOUNT
value: amitlichttest
- name: AZURE_STORAGE_CONTAINER
value: test
args: [ "while true; do az login --federated-token \"$(cat $AZURE_FEDERATED_TOKEN_FILE)\" --service-principal -u $AZURE_CLIENT_ID -t $AZURE_TENANT_ID; az storage blob list --container $AZURE_STORAGE_CONTAINER --account-name $AZURE_STORAGE_ACCOUNT --auth-mode login; sleep 1; echo 'Client - The time is:'; curl -v --silent google.com 2>&1 | grep 'Date:'; sleep 2; done" ]

0 comments on commit 23e43c2

Please sign in to comment.