summaryrefslogtreecommitdiff
path: root/container
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-08-14 17:05:11 +0200
committerValery Piashchynski <[email protected]>2023-08-14 17:05:11 +0200
commit00d24df903004641c739f83e755cf1800c3c81a4 (patch)
tree9643c1f9ceda50363b86e40b2aa2282e2f7de5a2 /container
parent0a48c5557e6bfeada5fc143b138cd1b8ee6374d1 (diff)
chore: watchgod, configuration update
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'container')
-rw-r--r--container/config.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/container/config.go b/container/config.go
index 9364ecf8..fbb34194 100644
--- a/container/config.go
+++ b/container/config.go
@@ -10,10 +10,10 @@ import (
// Config defines endure container configuration.
type Config struct {
- GracePeriod time.Duration `mapstructure:"grace_period"`
- LogLevel string `mapstructure:"log_level"`
- EnableWatchdog bool `mapstructure:"enable_watchdog"`
- PrintGraph bool `mapstructure:"print_graph"`
+ GracePeriod time.Duration `mapstructure:"grace_period"`
+ LogLevel string `mapstructure:"log_level"`
+ WatchdogSec int `mapstructure:"watchdog_sec"`
+ PrintGraph bool `mapstructure:"print_graph"`
}
const (
@@ -34,10 +34,9 @@ func NewConfig(cfgFile string) (*Config, error) {
}
cfg := &Config{
- GracePeriod: defaultGracePeriod,
- LogLevel: "error",
- PrintGraph: false,
- EnableWatchdog: false,
+ GracePeriod: defaultGracePeriod,
+ LogLevel: "error",
+ PrintGraph: false,
}
if !v.IsSet(endureKey) {