From 7f71db5e08e1f032d0d1533d4e386771da6b86cf Mon Sep 17 00:00:00 2001 From: Calum Murray Date: Mon, 7 Jul 2025 15:04:00 -0400 Subject: [PATCH] fix: revert string parsing in configmap to not trim spaces Signed-off-by: Calum Murray --- configmap/parser/parse.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configmap/parser/parse.go b/configmap/parser/parse.go index df7662af4..a468727aa 100644 --- a/configmap/parser/parse.go +++ b/configmap/parser/parse.go @@ -19,7 +19,6 @@ package parser import ( "fmt" "strconv" - "strings" "time" ) @@ -72,7 +71,7 @@ func parse[T parseable](s string) (T, error) { switch any(zero).(type) { case string: - val = strings.TrimSpace(s) + val = s case int16: val, err = strconv.ParseInt(s, 10, 16) val = int16(val.(int64))