diff --git a/config/configStructs/scriptingConfig.go b/config/configStructs/scriptingConfig.go index 0cc044ec3..bd74e5cc5 100644 --- a/config/configStructs/scriptingConfig.go +++ b/config/configStructs/scriptingConfig.go @@ -12,12 +12,13 @@ import ( ) type ScriptingConfig struct { - Env map[string]interface{} `yaml:"env" json:"env" default:"{}"` - Source string `yaml:"source" json:"source" default:""` - Sources []string `yaml:"sources" json:"sources" default:"[]"` - WatchScripts bool `yaml:"watchScripts" json:"watchScripts" default:"true"` - Active []string `yaml:"active" json:"active" default:"[]"` - Console bool `yaml:"console" json:"console" default:"true"` + Env map[string]interface{} `yaml:"env" json:"env" default:"{}"` + Source string `yaml:"source" json:"source" default:""` + Sources []string `yaml:"sources" json:"sources" default:"[]"` + WatchScripts bool `yaml:"watchScripts" json:"watchScripts" default:"true"` + Active []string `yaml:"active" json:"active" default:"[]"` + ActivateOnCreation bool `yaml:"activateOnCreation" json:"activateOnCreation" default:"true"` + Console bool `yaml:"console" json:"console" default:"true"` } func (config *ScriptingConfig) GetScripts() (scripts []*misc.Script, err error) { diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 9ce78a231..4ba5858c0 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -258,6 +258,7 @@ scripting: sources: [] watchScripts: true active: [] + activateOnCreation: true console: true timezone: "" logLevel: warning