Advisor: Make evaluation interval and max history configurable (#100534)

This commit is contained in:
Andres Martinez Gotor
2025-02-14 10:05:34 +01:00
committed by GitHub
parent 7f20495289
commit 12bb50f97f
6 changed files with 119 additions and 21 deletions
+2 -1
View File
@@ -19,10 +19,11 @@ import (
func New(cfg app.Config) (app.App, error) {
// Read config
checkRegistry, ok := cfg.SpecificConfig.(checkregistry.CheckService)
specificConfig, ok := cfg.SpecificConfig.(checkregistry.AdvisorAppConfig)
if !ok {
return nil, fmt.Errorf("invalid config type")
}
checkRegistry := specificConfig.CheckRegistry
// Prepare storage client
clientGenerator := k8s.NewClientRegistry(cfg.KubeConfig, k8s.ClientConfig{})