Skip to content

Commit

Permalink
chore: add include-cbor flag (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
avatxus authored May 10, 2024
1 parent e80e9b9 commit 5c86353
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bootstrap/instance/ogmios.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ locals {
name = "ogmios-${var.network}-${var.ogmios_version}-${var.salt}"
image = var.ogmios_image
container_port = 1337
default_args = [
"--node-socket", "/ipc/node.socket",
"--node-config", "/config/config.json",
"--host", "0.0.0.0"
]
container_args = var.ogmios_version == "5" ? local.default_args : concat(local.default_args, ["--include-cbor"])
}

resource "kubernetes_deployment_v1" "ogmios" {
Expand Down Expand Up @@ -48,11 +54,7 @@ resource "kubernetes_deployment_v1" "ogmios" {
name = "main"
image = local.image
image_pull_policy = "IfNotPresent"
args = [
"--node-socket", "/ipc/node.socket",
"--node-config", "/config/config.json",
"--host", "0.0.0.0"
]
args = local.container_args

resources {
limits = {
Expand Down

0 comments on commit 5c86353

Please sign in to comment.