Skip to content

Commit

Permalink
Merge pull request #941 from AlbeeSo/fix/ossfs-mime
Browse files Browse the repository at this point in the history
fix: use "mime" key to compatible with s3fs
  • Loading branch information
k8s-ci-robot authored Jan 9, 2024
2 parents 5409261 + a418c2d commit a408129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit a408129

Please sign in to comment.