Skip to content

Commit

Permalink
initializer: add workaround for k6 error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yorugac committed Dec 14, 2022
1 parent 5cec748 commit 2760c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/jobs/initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewInitializerJob(k6 *v1alpha1.K6, argLine string) (*batchv1.Job, error) {
)
command, istioEnabled := newIstioCommand(k6.Spec.Scuttle.Enabled, []string{"sh", "-c"})
command = append(command, fmt.Sprintf(
"k6 archive --log-output=none %s -O %s %s && k6 inspect --execution-requirements --log-output=none %s",
"k6 archive %s -O %s %s 2> /tmp/k6logs && k6 inspect --execution-requirements %s 2> /tmp/k6logs ; cat /tmp/k6logs | grep 'level=error' || true",
scriptName, archiveName, argLine,
archiveName))

Expand Down

0 comments on commit 2760c41

Please sign in to comment.