Skip to content

Fix helm test on read-only root filesystem - #520

Open
SDkie wants to merge 2 commits into
qdrant:mainfrom
SDkie:fix/441-helm-test-readonly-rootfs
Open

SDkie wants to merge 2 commits into
qdrant:mainfrom
SDkie:fix/441-helm-test-readonly-rootfs

Conversation

@SDkie

@SDkie SDkie commented Oct 23, 2026

Copy link
Copy Markdown

Fixes #441

What changed

The helm test pod writes ~/.curlrc at startup, which fails on clusters that enforce readOnlyRootFilesystem on every pod. The test pod now gets a writable emptyDir mounted at /tmp/home and HOME points to it.

Added an optional chartTests.dbInteraction.containerSecurityContext value that is rendered into the test container. It is unset by default, so rendering is unchanged unless you set it.

Added an integration test (readonly_rootfs.bats) that runs helm test with a read-only root filesystem. It fails without the fix.

Testing

  • make lint
  • make test-unit
  • make test-integration (all 28 tests pass)

SDkie added 2 commits October 23, 2026 20:16
Test pod entrypoint writes ~/.curlrc, which fails on a read-only rootfs.
Add a chartTests securityContext option to enforce it; stays red until fixed.
@SDkie

SDkie commented Oct 23, 2026

Copy link
Copy Markdown
Author

Hi @bashofmann,

Can you help me with this pull request? Your review will be helpful.

This branch has not been deployed

No deployments
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.

Qdrant Helm tests fail: Entrypoint script requires writable $HOME but cluster enforces readOnlyRootFilesystem

1 participant