Skip to content

Commit

Permalink
Fix JindoCache OSS-HDFS AK Transform (#3358)
Browse files Browse the repository at this point in the history
* fix dls ak

Signed-off-by: frankleaf <[email protected]>

* fix dls ak

Signed-off-by: frankleaf <[email protected]>

---------

Signed-off-by: frankleaf <[email protected]>
  • Loading branch information
frankleaf authored Jul 25, 2023
1 parent 3c723c4 commit 61a97a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/ddc/jindocache/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,14 @@ func (e *JindoCacheEngine) transformMaster(runtime *datav1alpha1.JindoRuntime, m
propertiesFileStore["jindocache.oss.bucket."+bucketName+".endpoint"] = mount.Options["fs.oss.endpoint"]
if strings.Contains(mount.Options["fs.oss.endpoint"], "dls") {
propertiesFileStore["jindocache.oss.bucket."+bucketName+".data.lake.storage.enable"] = "true"
if os.Getenv("jindocache.internal.test") == "true" {
if mount.Options["fs.oss.accessKeyId"] != "" {
propertiesFileStore["jindocache.oss.bucket."+bucketName+".accessKeyId"] = mount.Options["fs.oss.accessKeyId"]
}
if mount.Options["fs.oss.accessKeySecret"] != "" {
propertiesFileStore["jindocache.oss.bucket."+bucketName+".accessKeySecret"] = mount.Options["fs.oss.accessKeySecret"]
}
}
}
}

Expand Down

0 comments on commit 61a97a2

Please sign in to comment.