aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/controller/main.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-04-24 17:04:38 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-04-30 12:32:14 +0000
commit937aafd76e698830e784cf8af849eaae479a6ace (patch)
tree1cf7050e4136b688fbac482cef6b415d181605bf /syz-cluster/controller/main.go
parent7c6d304203f2c91fd2927dc473e0b56379eb0dd5 (diff)
syz-cluster: separate global env from global config
Environment variables are convenient for storing values like DB or GCS bucket names, but structured formats are more convenient for the actual service configuration. Separate global-config from global-config-env and add the functionality that queries and parses the config options.
Diffstat (limited to 'syz-cluster/controller/main.go')
-rw-r--r--syz-cluster/controller/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/syz-cluster/controller/main.go b/syz-cluster/controller/main.go
index 525c02da0..dc6404b38 100644
--- a/syz-cluster/controller/main.go
+++ b/syz-cluster/controller/main.go
@@ -20,7 +20,11 @@ func main() {
if err != nil {
app.Fatalf("failed to set up environment: %v", err)
}
- sp := NewSeriesProcessor(env)
+ cfg, err := app.Config()
+ if err != nil {
+ app.Fatalf("failed to fetch the config: %v", err)
+ }
+ sp := NewSeriesProcessor(env, cfg)
go func() {
err := sp.Loop(ctx)
app.Fatalf("processor loop failed: %v", err)