Files
devstar-create-from-template/modules/setting/k8s.go

15 lines
326 B
Go
Raw Normal View History

2025-08-25 15:46:12 +08:00
package setting
var K8sConfig = struct {
Enable bool
Url string
Token string
}{}
func loadK8sSettingsFrom(rootCfg ConfigProvider) {
sec := rootCfg.Section("k8s")
K8sConfig.Enable = sec.Key("ENABLE").MustBool(false)
K8sConfig.Url = sec.Key("URL").MustString("")
K8sConfig.Token = sec.Key("TOKEN").MustString("")
}