File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ locals {
2
2
name = " ogmios-${ var . network } -${ var . ogmios_version } -${ var . salt } "
3
3
image = var. ogmios_image
4
4
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" ])
5
11
}
6
12
7
13
resource "kubernetes_deployment_v1" "ogmios" {
@@ -48,11 +54,7 @@ resource "kubernetes_deployment_v1" "ogmios" {
48
54
name = " main"
49
55
image = local. image
50
56
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
56
58
57
59
resources {
58
60
limits = {
You can’t perform that action at this time.
0 commit comments