Skip to content

Commit 31516a2

Browse files
committed
feat(api/config): add timeout to config.
support timeouts specific fileds in json structure
1 parent 511ea0e commit 31516a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

api/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ type Config struct {
3030
// CPU is used to set process CPU limits. It can be set in terms of whole CPUs
3131
// (ex 1) or in milli units to reflect the number of CPU shares (ex 500m).
3232
CPU map[string]interface{} `json:"cpu,omitempty"`
33+
// Timeout is used to set termination grace period. The key is the process name
34+
// and the value is a number in seconds, e.g. 30
35+
Timeout map[string]interface{} `json:"termination_grace_period,omitempty"`
3336
// Healthcheck is map of healthchecks for each process that the application uses.
3437
Healthcheck map[string]*Healthchecks `json:"healthcheck,omitempty"`
3538
// Tags restrict applications to run on k8s nodes with that label.

0 commit comments

Comments
 (0)