Skip to content

Commit

Permalink
fix: update pod-name derivation from chain id name
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Sep 11, 2023
1 parent 4adeb6d commit e603d35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions port_forward.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ if [[ $num_chains -lt 0 ]]; then
exit 1
fi
for i in $(seq 0 $num_chains); do
# # derive chain pod name from chain id
# https://github.com/cosmology-tech/starship/blob/main/charts/devnet/templates/_helpers.tpl#L56
chain=$(yq -r ".chains[$i].name" ${CONFIGFILE} )
chain=${chain/_/"-"}
localrpc=$(yq -r ".chains[$i].ports.rpc" ${CONFIGFILE} )
localgrpc=$(yq -r ".chains[$i].ports.grpc" ${CONFIGFILE} )
locallcd=$(yq -r ".chains[$i].ports.rest" ${CONFIGFILE} )
Expand Down

0 comments on commit e603d35

Please sign in to comment.