Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic for handling default filesystem root dir
We started using a BucketClient for the filesystem where the default directory is an empty string: https://github.com/cortexproject/cortex/blob/af9e20c54ee97f409008f3e86541c5dfa5038e22/pkg/storage/bucket/filesystem/config.go#L17 When we create the new bucket, https://github.com/cortexproject/cortex/blob/526a6d935a948119cf74033a9f79391786022222/vendor/github.com/thanos-io/objstore/providers/filesystem/filesystem.go#L46 uses `filepath.Abs("")` which will use the current working directory as the root directory. Fixes: cortexproject#6219 Signed-off-by: Charlie Le <[email protected]>
- Loading branch information