Skip to content

Commit

Permalink
use token arg
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
  • Loading branch information
jsturtevant committed Jun 7, 2024
1 parent c594917 commit 74a1de0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions capz/run-capz-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ main() {

echo "testing az mi"
kubectl get --raw "/.well-known/openid-configuration"
echo "file:"
cat /var/run/secrets/azure-token/serviceaccount/token
cat /var/run/secrets/azure-token/serviceaccount/token | jq -r '.iss'
cat /var/run/secrets/azure-token/serviceaccount/token | jq -r '.sub'
cat /var/run/secrets/azure-token/serviceaccount/token | jq -r '."kubernetes.io"'

az login --identity --username 6755ccd3-1c03-4b09-aa0d-166f1f719b30
az login -i -u 6755ccd3-1c03-4b09-aa0d-166f1f719b30 --federated-token "$(cat /var/run/secrets/azure-token/serviceaccount/token)"
az account show

echo "shutting down"
Expand Down

0 comments on commit 74a1de0

Please sign in to comment.