Repository navigation
Fix #6962: Add mount trait e2e test - #6970
Merged
Merged
Conversation
squakez
approved these changes
Nov 16, 2026
squakez
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the work. Most of the tests are probably now overriding the ones in /common/config testing. Maybe we can remove them as well.
Contributor
|
@Yasas-Sri any possibility to have a look at the PR comments before merging this one? Thanks. |
squakez
approved these changes
Nov 17, 2026
Contributor
Author
|
@squakez sorry for the late reply. i have make the changes according to your reivew |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6962
Adds an e2e test for the
mounttrait (e2e/common/traits/mount_test.go). It covers the main trait options. Each mounted value is fed into a simple timer/file route, and the test checks the expected output in the integration logs.Coverage
mount.configsfrom a ConfigMap: a properties key is interpolated into{{my.message}}and logged.mount.configsfrom a Secret: same check, with the value coming from a Secret.mount.resourceswith a filtered key and a destination path (configmap:cm/my-resource.txt@/tmp/mount/my-resource.txt): the route reads and logs the file, and the test checks that the other key in the ConfigMap is not mounted.mount.empty-dirswith a size limit: the route writes a file to the emptyDir and reads it back, and the test checks the volume'ssizeLimiton the pod spec.mount.volumeswith a dynamic PVC (name:/path:size:accessMode): same write/read round trip, plus a check that the PVC was created.Notes
mount.hot-reloadis not covered here becausee2e/common/config/config_reload_test.goalready covers it.e2e/common/traits/files/mount/are needed because no existing trait route logs a property or a mounted file.