k8s: remove dependency on app_mode development (#85474)

* k8s: remove dependency on app_mode development

* remove dev conditions on storage server

* remove logic to drop entity tables
This commit is contained in:
Georges Chaudy
2024-05-03 11:28:15 +03:00
committed by GitHub
parent fd58168c3b
commit dd0e646e92
8 changed files with 10 additions and 66 deletions
-8
View File
@@ -106,14 +106,6 @@ func (s *ModuleServer) Run() error {
s.notifySystemd("READY=1")
s.log.Debug("Waiting on services...")
// Only allow individual dskit modules to run in dev mode.
if s.cfg.Env != setting.Dev {
if len(s.cfg.Target) > 1 || s.cfg.Target[0] != "all" {
s.log.Error("dskit module targeting is only supported in dev mode. Falling back to 'all'")
s.cfg.Target = []string{"all"}
}
}
m := modules.New(s.cfg.Target)
// only run the instrumentation server module if were not running a module that already contains an http server