Skip to content

Commit

Permalink
PANDARIA: Add aliyun credential
Browse files Browse the repository at this point in the history
  • Loading branch information
smallteeths committed Oct 9, 2024
1 parent cfc559b commit 66cb44d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion extensions/cloudcredentials/cloudcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func LoadCloudCredential(provider string) CloudCredential {
cloudCredential.HuaweiCredentialConfig = &huaweiCredentialConfig

return cloudCredential

case provider == providers.Tencent:
var tkeCredentialConfig TencentCredentialConfig

Expand All @@ -112,6 +112,14 @@ func LoadCloudCredential(provider string) CloudCredential {

return cloudCredential

case provider == providers.Aliyun:
var aliyunECSCredentialConfig AliyunECSCredentialConfig

config.LoadConfig(AliyunECSCredentialConfigurationFileKey, &aliyunECSCredentialConfig)
cloudCredential.AliyunECSCredentialConfig = &aliyunECSCredentialConfig

return cloudCredential

default:
panic(fmt.Sprintf("Provider:%v not found", provider))
}
Expand Down

0 comments on commit 66cb44d

Please sign in to comment.