Skip to content

Commit 316d112

Browse files
RononDexrockdaboot
andauthored
Trim whistepaces from envVar
Co-authored-by: Tim Rühsen <[email protected]>
1 parent a930557 commit 316d112

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controller/controller.go

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func (c *Controller) Start(ctx context.Context) error {
7676
envVars := libpf.Set[string]{}
7777
splittedEnvVars := strings.Split(c.config.IncludeEnvVars, ",")
7878
for _, envVar := range splittedEnvVars {
79+
envVar = strings.TrimSpace(envVar)
7980
if envVar != "" {
8081
envVars[envVar] = libpf.Void{}
8182
}

0 commit comments

Comments
 (0)