Skip to content

Commit 5c86353

Browse files
authored
chore: add include-cbor flag (#54)
1 parent e80e9b9 commit 5c86353

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diff for: bootstrap/instance/ogmios.tf

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ locals {
22
name = "ogmios-${var.network}-${var.ogmios_version}-${var.salt}"
33
image = var.ogmios_image
44
container_port = 1337
5+
default_args = [
6+
"--node-socket", "/ipc/node.socket",
7+
"--node-config", "/config/config.json",
8+
"--host", "0.0.0.0"
9+
]
10+
container_args = var.ogmios_version == "5" ? local.default_args : concat(local.default_args, ["--include-cbor"])
511
}
612

713
resource "kubernetes_deployment_v1" "ogmios" {
@@ -48,11 +54,7 @@ resource "kubernetes_deployment_v1" "ogmios" {
4854
name = "main"
4955
image = local.image
5056
image_pull_policy = "IfNotPresent"
51-
args = [
52-
"--node-socket", "/ipc/node.socket",
53-
"--node-config", "/config/config.json",
54-
"--host", "0.0.0.0"
55-
]
57+
args = local.container_args
5658

5759
resources {
5860
limits = {

0 commit comments

Comments
 (0)