Skip to content

Commit

Permalink
chore: Handle private vector testnet image (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezzfelipe authored Jan 24, 2025
1 parent c0a0c87 commit ac3122d
Show file tree
Hide file tree
Showing 10 changed files with 676 additions and 18 deletions.
16 changes: 16 additions & 0 deletions bootstrap/configs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ resource "kubernetes_config_map" "node-config" {
}
}

resource "kubernetes_config_map" "genesis" {
for_each = var.network == "vector-testnet" ? toset(["vector-testnet"]) : toset([])

metadata {
namespace = var.namespace
name = "genesis-${var.network}"
}

data = {
"alonzo.json" = "${file("${path.module}/${var.network}/alonzo.json")}"
"byron.json" = "${file("${path.module}/${var.network}/byron.json")}"
"conway.json" = "${file("${path.module}/${var.network}/conway.json")}"
"shelley.json" = "${file("${path.module}/${var.network}/shelley.json")}"
}
}

output "cm_name" {
value = "configs-${var.network}"
}
10 changes: 5 additions & 5 deletions bootstrap/configs/prime-testnet/config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"ByronGenesisFile": "/genesis/prime-testnet/byron/genesis.json",
"ShelleyGenesisFile": "/genesis/prime-testnet/shelley/genesis.json",
"AlonzoGenesisFile": "/genesis/prime-testnet/shelley/genesis.alonzo.json",
"ConwayGenesisFile": "/genesis/prime-testnet/shelley/genesis.conway.json",
"ByronGenesisFile": "/genesis/prime-testnet/byron-genesis.json",
"ShelleyGenesisFile": "/genesis/prime-testnet/shelley-genesis.json",
"AlonzoGenesisFile": "/genesis/prime-testnet/alonzo-genesis.json",
"ConwayGenesisFile": "/genesis/prime-testnet/conway-genesis.json",
"ByronGenesisHash": "acd3e7c4cc071ae176fa253e654f0dd4e759892b16e958d8bd3c393f5c6c66d2",
"ShelleyGenesisHash": "0b67b0cb16e973478888efb1c7f69fca8e80489369afed94624a588e94a94f2b",
"AlonzoGenesisHash": "0f715ff78fcab739c6cb2cc1073eb87d0ffe3514218bfa0337d416f6fbaf7886",
Expand Down Expand Up @@ -106,4 +106,4 @@
"TraceLedgerPeers": true,
"TracePeerSelectionCounters": true,
"TracePeerStateActions": true
}
}
Loading

0 comments on commit ac3122d

Please sign in to comment.