Skip to content

Commit 8b17eb7

Browse files
authored
Merge branch 'main' into fix/health-check-cmd-prefix
2 parents cb8f79d + 4bd80e3 commit 8b17eb7

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

examples/swarm-app.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ service_specs:
6262
publish_mode: ingress
6363
health_check:
6464
test: ["CMD", "true"]
65-
interval: 5000000 # 5s
66-
timeout: 5000000 # 5s
65+
interval: 5000000000 # 5s (nanoseconds)
66+
timeout: 5000000000 # 5s (nanoseconds)
6767
retries: 3
68-
start_period: 5000000 # 5s
69-
start_interval: 1000000 # 1s
68+
start_period: 5000000000 # 5s (nanoseconds)
69+
start_interval: 1000000000 # 1s (nanoseconds)
7070
mounts:
7171
/etc/nginx/:
7272
source: "web-data"

schema.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
]
7676
},
7777
"stop_grace_period": {
78-
"type": "int32"
78+
"type": "float64"
7979
},
8080
"user": {
8181
"type": "string"
@@ -107,10 +107,10 @@
107107
"elements": {
108108
"properties": {
109109
"published_port": {
110-
"type": "int16"
110+
"type": "uint16"
111111
},
112112
"target_port": {
113-
"type": "int16"
113+
"type": "uint16"
114114
}
115115
},
116116
"optionalProperties": {
@@ -140,19 +140,19 @@
140140
}
141141
},
142142
"interval": {
143-
"type": "int32"
143+
"type": "float64"
144144
},
145145
"timeout": {
146-
"type": "int32"
146+
"type": "float64"
147147
},
148148
"retries": {
149149
"type": "int32"
150150
},
151151
"start_period": {
152-
"type": "int32"
152+
"type": "float64"
153153
},
154154
"start_interval": {
155-
"type": "int32"
155+
"type": "float64"
156156
}
157157
}
158158
},

src/swarm-app-config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const swarmAppConfigSchema: JTDSchemaType<SwarmAppConfig> = {
104104
},
105105
replicas: {type: "int32"},
106106
stop_signal: {enum: ["SIGTERM", "SIGQUIT"]},
107-
stop_grace_period: {type: "int32"},
107+
stop_grace_period: {type: "float64"},
108108
user: {type: "string"},
109109
placement: {
110110
optionalProperties: {
@@ -124,8 +124,8 @@ export const swarmAppConfigSchema: JTDSchemaType<SwarmAppConfig> = {
124124
ports: {
125125
elements: {
126126
properties: {
127-
published_port: {type: "int16"},
128-
target_port: {type: "int16"},
127+
published_port: {type: "uint16"},
128+
target_port: {type: "uint16"},
129129
},
130130
optionalProperties: {
131131
publish_mode: {enum: ["ingress", "host"]},
@@ -138,11 +138,11 @@ export const swarmAppConfigSchema: JTDSchemaType<SwarmAppConfig> = {
138138
health_check: {
139139
optionalProperties: {
140140
test: {elements: {type: "string"}},
141-
interval: {type: "int32"},
142-
timeout: {type: "int32"},
141+
interval: {type: "float64"},
142+
timeout: {type: "float64"},
143143
retries: {type: "int32"},
144-
start_period: {type: "int32"},
145-
start_interval: {type: "int32"},
144+
start_period: {type: "float64"},
145+
start_interval: {type: "float64"},
146146
},
147147
},
148148
dir: {type: "string"},

0 commit comments

Comments
 (0)