K6 operator with remote test script

Hello, I planned on using the k6 operator. I have my test file and data files uploaded on a AWS S3 bucket. I have a small shell script for downloading them. Is there a way with the operator to download them by running a init script or so and then use local file? I don’t want to download them in advance and put them to a config map. Thank you.

Hi @besessener, welcome to the forum :waving_hand:
You can use initContainers for this case, and let the script be downloaded there. They can be specified in .spec.runner.initContainers of the TestRun. The syntax uses the same fields that init containers in Kubernetes usually do, like name, image`, etc. (docs).

Example of a TestRun: k6-operator/e2e/init-container-volume/testrun.yaml at main · grafana/k6-operator · GitHub

Hope that helps!