Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement resource annotation #135

Merged
merged 5 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 44 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ aws-sdk-sesv2 = { version = "1.43.0", features = ["behavior-version-latest"] }
clap = { version = "4.5.17", features = ["derive", "env"] }
comfy-table = "7.1.1"
csv = "1.3.0"
handlebars = "6.1.0"

[dev-dependencies]
mockall = "0.12.1"
Expand Down
23 changes: 21 additions & 2 deletions bootstrap/rpc/crds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@ resource "kubernetes_config_map_v1" "fabric_rpc_crds" {
}

data = {
"utxorpcport.json" = "${file("${path.module}/crds/utxorpcport.json")}"
"frontends.json" = "${file("${path.module}/crds/frontends.json")}"
"blockfrostport.hbs" = "${file("${path.module}/crds/blockfrostport.hbs")}"
"blockfrostport.json" = "${file("${path.module}/crds/blockfrostport.json")}"
"cardanonodeport.hbs" = "${file("${path.module}/crds/cardanonodeport.hbs")}"
"cardanonodeport.json" = "${file("${path.module}/crds/cardanonodeport.json")}"
"dbsyncport.hbs" = "${file("${path.module}/crds/dbsyncport.hbs")}"
"dbsyncport.json" = "${file("${path.module}/crds/dbsyncport.json")}"
"frontends.json" = "${file("${path.module}/crds/frontends.json")}"
"kupoport.hbs" = "${file("${path.module}/crds/kupoport.hbs")}"
"kupoport.json" = "${file("${path.module}/crds/kupoport.json")}"
"marloweport.hbs" = "${file("${path.module}/crds/marloweport.hbs")}"
"marloweport.json" = "${file("${path.module}/crds/marloweport.json")}"
"mumakport.hbs" = "${file("${path.module}/crds/mumakport.hbs")}"
"mumakport.json" = "${file("${path.module}/crds/mumakport.json")}"
"ogmiosport.hbs" = "${file("${path.module}/crds/ogmiosport.hbs")}"
"ogmiosport.json" = "${file("${path.module}/crds/ogmiosport.json")}"
"scrollsport.hbs" = "${file("${path.module}/crds/scrollsport.hbs")}"
"scrollsport.json" = "${file("${path.module}/crds/scrollsport.json")}"
"submitapiport.hbs" = "${file("${path.module}/crds/submitapiport.hbs")}"
"submitapiport.json" = "${file("${path.module}/crds/submitapiport.json")}"
"utxorpcport.hbs" = "${file("${path.module}/crds/utxorpcport.hbs")}"
"utxorpcport.json" = "${file("${path.module}/crds/utxorpcport.json")}"
}
}
25 changes: 25 additions & 0 deletions bootstrap/rpc/crds/blockfrostport.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"label": "Network",
"value": "{{network}}"
},
{
"label": "Throughput Tier",
"value": "{{throughputTier}}"
},
{
"label": "Endpoint URL",
"value": "https://blockfrost-m1.demeter.run",
"description": "Public URL to access your Blockfrost RYO API"
},
{
"label": "Authenticated Endpoint URL",
"value": "https://{{authToken}}.blockfrost-m1.demeter.run",
"description": "Authenticated public URL to access your Blockfrost RYO API. Useful if your library does not support adding custom headers"
},
{
"label": "Auth Token",
"value": "{{authToken}}",
"description": "Api Key to be sent in the header as dmtr-api-key"
}
]
15 changes: 15 additions & 0 deletions bootstrap/rpc/crds/cardanonodeport.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"label": "Network",
"value": "{{network}}"
},
{
"label": "Throughput Tier",
"value": "{{throughputTier}}"
},
{
"label": "Endpoint URL",
"value": "{{authToken}}.cnode-m1.demeter.run",
"description": "Public URL to access your Node. You can use the Demeter CLI to interact with your Node."
},
]
40 changes: 40 additions & 0 deletions bootstrap/rpc/crds/dbsyncport.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[
{
"label": "Network",
"value": "{{network}}"
},
{
"label": "Throughput Tier",
"value": "{{throughputTier}}"
},
{
"label": "Public hostname",
"value": "dbsync-v3.demeter.run",
"description": "Public hostname to use in your PostgreSQL connection"
},
{
"label": "Public port number",
"value": "5432",
"description": "Public port number to use in your PostgreSQL connection"
},
{
"label": "Database name",
"value": "dbsync-{{network}}",
"description": "Database name to use in your PostgreSQL connection"
},
{
"label": "Username",
"value": "{{username}}",
"description": "Username to access the Postgres."
},
{
"label": "Password",
"value": "{{password}}",
"description": "Password to access the Postgres."
},
{
"label": "Connection string",
"value": "postgresql://{{username}}:{{password}}@dbsync-v3.demeter.run:5432/dbsync-{{network}}",
"description": "Connection string to use in your PostgreSQL connection"
},
]
25 changes: 25 additions & 0 deletions bootstrap/rpc/crds/kupoport.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"label": "Network",
"value": "{{network}}"
},
{
"label": "Throughput Tier",
"value": "{{throughputTier}}"
},
{
"label": "Endpoint URL",
"value": "https://{{network}}-v2.kupo-m1.demeter.run",
"description": "Public URL to access your Kupo API"
},
{
"label": "Authenticated Endpoint URL",
"value": "https://{{authToken}}.{{network}}-v2.kupo-m1.demeter.run",
"description": "Authenticated public URL to access your Kupo API. Useful if your library does not support adding custom headers"
},
{
"label": "Api Key",
"value": "{{authToken}}",
"description": "Api Key to be sent in the header as dmtr-api-key"
}
]
25 changes: 25 additions & 0 deletions bootstrap/rpc/crds/marloweport.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"label": "Network",
"value": "{{network}}"
},
{
"label": "Throughput Tier",
"value": "{{throughputTier}}"
},
{
"label": "Endpoint URL",
"value": "https://marlowe.demeter.run",
"description": "Public URL to access your Marlowe"
},
{
"label": "Authenticated Endpoint URL",
"value": "https://{{authToken}}.marlowe.demeter.run",
"description": "Authenticated public URL to access your Marlowe. Useful if your library does not support adding custom headers"
},
{
"label": "Api Key",
"value": "{{authToken}}",
"description": "Api Key to be sent in the header as dmtr-api-key"
}
]
Loading
Loading