first-commit
This commit is contained in:
14
modules/setting/k8s.go
Normal file
14
modules/setting/k8s.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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("")
|
||||
}
|
Reference in New Issue
Block a user