From 0b3f77eb43de0c5722f8a939e89498f0e2dcc78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Fri, 19 Apr 2024 15:44:30 +0200 Subject: [PATCH] entrypoint/: process config env vars with "-" as well to support config options with "-" in names. --- entrypoint/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint/main.go b/entrypoint/main.go index efd6ab5..d4e417f 100644 --- a/entrypoint/main.go +++ b/entrypoint/main.go @@ -24,7 +24,7 @@ import ( const configDir = "/etc/icingadb" var config = path.Join(configDir, "icingadb.yml") -var myEnv = regexp.MustCompile(`(?s)\AICINGADB_(\w+?)_(\w+)=(.*)\z`) +var myEnv = regexp.MustCompile(`(?s)\AICINGADB_([-\w]+?)_([-\w]+)=(.*)\z`) var log = func() *zap.Logger { logger, err := zap.NewDevelopment()