Skip to content

fix: use /tmp/kvirtbp/output.json as default collector output path#4

Closed
Copilot wants to merge 9 commits into
mainfrom
copilot/fix-permission-denied-error
Closed

fix: use /tmp/kvirtbp/output.json as default collector output path#4
Copilot wants to merge 9 commits into
mainfrom
copilot/fix-permission-denied-error

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 7, 2026

Collector pods fail with mkdir: can't create directory '/kvirtbp': Permission denied on images that run as non-root or have a read-only root filesystem. /tmp is writable in virtually all container images.

Changes

  • internal/collector/types.godefaultOutputPath/tmp/kvirtbp/output.json
  • examples/collectors/hugepages/metadata.json — hardcoded output path in shell command updated
  • examples/collectors/node-info/metadata.json — hardcoded output path in shell command updated
  • examples/collectors/portworx-kubevirt/collect.py — output path updated in both the docstring and the json.dump call
  • examples/collectors/node-info/policy.rego — path reference updated
  • docs/collectors.md — default path references updated
  • internal/collector/collector_test.go, internal/eval/rego/engine_test.go — test expectations updated

Copilot AI and others added 9 commits April 7, 2026 04:10
…rmission errors

Agent-Logs-Url: https://github.com/phenixblue/kvirtbp/sessions/e36a24f5-2000-4b38-99b2-fb7d76b8a4f2

Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
…tbp/output.json

Agent-Logs-Url: https://github.com/phenixblue/kvirtbp/sessions/1860c5c9-985f-4032-8013-e2a338891596

Co-authored-by: phenixblue <40017920+phenixblue@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants