Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use "mime" key to compatible with s3fs #941

Merged
merged 3 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/fuse-clients/ossfs/install-ossfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "TARGETPLATFORM: $TARGETPLATFORM"
echo "installing ossfs"
case $TARGETPLATFORM in
linux/amd64)
yum install -y https://ack-csiplugin.oss-cn-hangzhou.aliyuncs.com/pre/ossfs/ossfs_1.88.3_centos8_x86_64.rpm
yum install -y https://ack-csiplugin.oss-cn-hangzhou.aliyuncs.com/pre/ossfs/ossfs_1.88.3_centos8.0_x86_64.rpm
;;
linux/arm64)
yum install -y \
Expand Down
4 changes: 2 additions & 2 deletions pkg/mounter/ossfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"k8s.io/utils/pointer"
)

var defaultOssfsImageTag = "705dbf0-aliyun"
var defaultOssfsImageTag = "36f22e0-aliyun"

const (
hostPrefix = "/host"
Expand Down Expand Up @@ -106,7 +106,7 @@ func (f *fuseOssfs) buildPodSpec(
mimeMountDir = OssfsDefMimeTypesFilePath
} else if strings.ToLower(f.config.Extra["mime-support"]) == "true" {
// mime.types not exists, use csi-mime.types
options = append(options, fmt.Sprintf("mime_types_file=%s", OssfsCsiMimeTypesFilePath))
options = append(options, fmt.Sprintf("mime=%s", OssfsCsiMimeTypesFilePath))
mimeMountDir = OssfsCsiMimeTypesFilePath
}

Expand Down