Skip to content

Commit a3fb355

Browse files
authored
Add umask s3fs mount option and fix typo (#199)
1 parent ab3927b commit a3fb355

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cos-csi-mounter/server/s3fs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type S3FSArgs struct {
3838
SigV4 string `json:"sigv4,omitempty"`
3939
StatCacheExpireSeconds string `json:"stat_cache_expire,omitempty"`
4040
UID string `json:"uid,omitempty"`
41+
Umask string `json:"umask,omitempty"`
4142
URL string `json:"url,omitempty"`
4243
UsePathRequestStyle string `json:"use_path_request_style,omitempty"`
4344
UseXattr string `json:"use_xattr,string,omitempty"`

pkg/driver/controllerserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ func parseCustomSecret(secret *v1.Secret) map[string]string {
541541
secretMapCustom["accessKey"] = accessKey
542542
secretMapCustom["secretKey"] = secretKey
543543
secretMapCustom["apiKey"] = apiKey
544-
secretMapCustom["kpRootKeyCrn"] = kpRootKeyCrn
544+
secretMapCustom["kpRootKeyCRN"] = kpRootKeyCrn
545545
secretMapCustom["serviceId"] = serviceInstanceID
546546
secretMapCustom["bucketName"] = bucketName
547547
secretMapCustom["iamEndpoint"] = iamEndpoint

pkg/driver/nodeserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (ns *nodeServer) NodePublishVolume(_ context.Context, req *csi.NodePublishV
109109
targetPath, deviceID, readOnly, volumeID, attrib, mountFlags)
110110

111111
secretMap := req.GetSecrets()
112-
klog.V(2).Infof("-NodePublishVolume-: length of req.GetSecrets() length: %v", len(req.GetSecrets()))
112+
klog.V(2).Infof("-NodePublishVolume-: length of req.GetSecrets() length: %v", len(secretMap))
113113
secretMapCopy := make(map[string]string)
114114
for k, v := range secretMap {
115115
if k == "accessKey" || k == "secretKey" || k == "apiKey" || k == "kpRootKeyCRN" {

0 commit comments

Comments
 (0)