From 646dc838644866f5f9ef2002e7acdff97e41982f Mon Sep 17 00:00:00 2001 From: ausias-armesto Date: Fri, 23 Feb 2024 12:56:22 +0100 Subject: [PATCH] Include system env vars --- pkg/resources/jobs/initializer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resources/jobs/initializer.go b/pkg/resources/jobs/initializer.go index 1b25449b..a708a63c 100644 --- a/pkg/resources/jobs/initializer.go +++ b/pkg/resources/jobs/initializer.go @@ -76,7 +76,7 @@ func NewInitializerJob(k6 v1alpha1.TestRunI, argLine string) (*batchv1.Job, erro // printing JSON as usual. Then parse temp file only for errors, ignoring // any other log messages. // Related: https://github.com/grafana/k6-docs/issues/877 - "mkdir -p $(dirname %s) && k6 archive %s -O %s %s 2> /tmp/k6logs && k6 inspect --execution-requirements %s 2> /tmp/k6logs ; ! cat /tmp/k6logs | grep 'level=error'", + "mkdir -p $(dirname %s) && k6 archive %s -O %s %s 2> /tmp/k6logs && k6 inspect --include-system-env-vars --execution-requirements %s 2> /tmp/k6logs ; ! cat /tmp/k6logs | grep 'level=error'", archiveName, scriptName, archiveName, argLine, archiveName))