Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
retrieve tree from inside pod
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi authored and gdbelvin committed Aug 25, 2017
1 parent 9db84b2 commit 0746e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/configure_trillian.sh
Expand Up @@ -13,7 +13,7 @@ function retrieveTrees()
JSON=`curl -f http://${KT_URL}/v1/domain/info` JSON=`curl -f http://${KT_URL}/v1/domain/info`
else else
KTSRV=$(kubectl get pods --selector=run=kt-server -o jsonpath={.items[*].metadata.name}) KTSRV=$(kubectl get pods --selector=run=kt-server -o jsonpath={.items[*].metadata.name})
JSON=`kubectl exec -i ${KTSRV} -- curl http://kt-server:8080/v1/domain/info` JSON=`kubectl exec -i ${KTSRV} -- curl -k https://localhost:8080/v1/domain/info`
fi fi


export LOG_ID=`echo ${JSON} | jq -r '.log.tree_id'` export LOG_ID=`echo ${JSON} | jq -r '.log.tree_id'`
Expand Down

0 comments on commit 0746e2b

Please sign in to comment.