From 707a986d7d4cb0fd07f796353c88294d309a90c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= Date: Thu, 25 May 2023 10:19:24 +0200 Subject: [PATCH] [target-allocator] Exit on invalid config --- cmd/otel-allocator/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/otel-allocator/main.go b/cmd/otel-allocator/main.go index a33d31b48b..87d6ace99d 100644 --- a/cmd/otel-allocator/main.go +++ b/cmd/otel-allocator/main.go @@ -76,6 +76,7 @@ func main() { if validationErr := config.ValidateConfig(&cfg, &cliConf); validationErr != nil { setupLog.Error(validationErr, "Invalid configuration") + os.Exit(1) } cliConf.RootLogger.Info("Starting the Target Allocator")