You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.4_Blockchain_version.sh 591B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . ./inc/utils.sh
  3. NS=besu
  4. POD=besu-node-validator-1-0
  5. mkdir -p blockchain-info
  6. # kubectl describe pod $POD -n $NS > blockchain-info/$POD-info.txt
  7. # kubectl describe configmap besu-genesis -n $NS > blockchain-info/genesis-info.txt
  8. # save genesis.json configmap to genesis.json
  9. echo "saving genesis.json configmap to genesis.json"
  10. CM=$(kubectl describe configmap besu-genesis -n $NS)
  11. CM=${CM#*----}
  12. CM=${CM%BinaryData*}
  13. echo $CM > ./blockchain-info/genesis.json
  14. echo $(kubectl get secrets/besu-node-validator-1-keys -o json -n besu) > ./blockchain-info/validator1.secret.json