Skip to content

Add resources field to initContainer in TestRun CRD #655

@gcaldasnu

Description

@gcaldasnu

Feature Description

Add the resource field to the initContainer within the TestRun Custom Resource Definition (CRD). This would allow users to explicitly configure CPU and memory requests and limits, ensuring that the initContainer is scheduled and runs stably.

Suggested Solution (optional)

apiVersion: k6.io/v1alpha1
kind: TestRun
metadata:
  name: my-test
spec:
  # ... other fields
  runner:
    initContainers:
      - name: example
        image: "busybox"
        resources:
          requests:
            memory: "64Mi"
            cpu: "100m"
          limits:
            memory: "128Mi"
            cpu: "200m"
  # ... other fields

Already existing or connected issues / PRs (optional)

#652

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions