🔨 Add scripting.activateOnCreation helm value

This commit is contained in:
tiptophelmet 2025-04-23 20:39:24 +03:00
parent df1628e1a4
commit 30c9ddd93e
2 changed files with 8 additions and 6 deletions

View File

@ -12,12 +12,13 @@ import (
) )
type ScriptingConfig struct { type ScriptingConfig struct {
Env map[string]interface{} `yaml:"env" json:"env" default:"{}"` Env map[string]interface{} `yaml:"env" json:"env" default:"{}"`
Source string `yaml:"source" json:"source" default:""` Source string `yaml:"source" json:"source" default:""`
Sources []string `yaml:"sources" json:"sources" default:"[]"` Sources []string `yaml:"sources" json:"sources" default:"[]"`
WatchScripts bool `yaml:"watchScripts" json:"watchScripts" default:"true"` WatchScripts bool `yaml:"watchScripts" json:"watchScripts" default:"true"`
Active []string `yaml:"active" json:"active" default:"[]"` Active []string `yaml:"active" json:"active" default:"[]"`
Console bool `yaml:"console" json:"console" default:"true"` 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) { func (config *ScriptingConfig) GetScripts() (scripts []*misc.Script, err error) {

View File

@ -258,6 +258,7 @@ scripting:
sources: [] sources: []
watchScripts: true watchScripts: true
active: [] active: []
activateOnCreation: true
console: true console: true
timezone: "" timezone: ""
logLevel: warning logLevel: warning