Skip to content

It is currently impossible to configure TMPDIR environment variable on trivy scan jobs #2795

@festeveira

Description

@festeveira

It is currently impossible to configure TMPDIR environment variable on trivy scan jobs. This would be useful for clusters where hosts have limited storage capacity and downloading large images to emptyDir would not be optimal. Configuring TMPDIR allows users to mount a volume of their choice on that location.

Another solution would be to allow users to override the /tmp emptyDir volume.

What steps did you take and what happened:
Installed trivy-operator via helm chart and found it is impossible to configure TMPDIR on trivy scan jobs.

What did you expect to happen:
Possible to configure TMPDIR

Environment:

  • Trivy-Operator version (use trivy-operator version): 0.29.0
  • Kubernetes version (use kubectl version): v1.32.7
  • OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): Debian 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions