Skip to content

volumeClaim is not working in v1.1.0 #686

@yogeshcbsi

Description

@yogeshcbsi

Brief summary

I can confirm volumeClaim is broken in v1.1.0. Verified below configuration works in v1.0.0 but not in v1.1.0.

k6-operator version or image

v1.1.0

Helm chart version (if applicable)

4.1.1

TestRun / PrivateLoadZone YAML

apiVersion: k6.io/v1alpha1
kind: TestRun
metadata:
  name: "test-run"
spec:
  script:
    volumeClaim:
      name: tests-source-pvc
      file: "my-tests/another-dir/test-123.js"

Other environment details (if applicable)

No response

Steps to reproduce the problem

Use volumeClaim method to mount test files in nested directory

Expected behaviour

volumeClaim should be mounted at /test/ as there is no way to configure mount and test file separately.

Actual behaviour

Initializer job is mounting volumeClaim at path my-tests/another-dir/ instead of /test/ failing job with module not found error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions