Files
oc-datacenter/conf/config.go
T

36 lines
1002 B
Go
Raw Normal View History

2025-03-05 17:47:13 +01:00
package conf
import "sync"
type Config struct {
2026-02-17 17:23:54 +01:00
Mode string
KubeHost string
KubePort string
2026-03-24 10:50:36 +01:00
// KubeExternalHost is the externally reachable address of this cluster's API server.
// Used when generating kubeconfigs for remote peers. Must be an IP or hostname
// reachable from outside the cluster (NOT kubernetes.default.svc.cluster.local).
KubeExternalHost string
KubeCA string
KubeCert string
KubeData string
MinioRootKey string
MinioRootSecret string
MonitorMode string
MonitorAddress string
2026-05-27 16:14:33 +02:00
// SourceKeyStorePath est le chemin du fichier JSON persistant qui stocke
// la table privée opaque_key → { real_path, resource_id }.
// Ce fichier doit être sur un volume monté pour survivre aux redémarrages.
// Valeur par défaut : /data/source-keys.json
SourceKeyStorePath string
2025-03-05 17:47:13 +01:00
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
2025-06-18 08:26:10 +02:00
}