Skip to content

Commit

Permalink
PANDARIA: add huawei/tencent cloud credential provider
Browse files Browse the repository at this point in the history
  • Loading branch information
JacieChao committed Sep 27, 2024
1 parent ef75d74 commit 79a5256
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions extensions/cloudcredentials/cloudcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,22 @@ func LoadCloudCredential(provider string) CloudCredential {

return cloudCredential

case provider == providers.Huawei:
var huaweiCredentialConfig HuaweiCredentialConfig

config.LoadConfig(HuaweiCredentialConfigurationFileKey, &huaweiCredentialConfig)
cloudCredential.HuaweiCredentialConfig = &huaweiCredentialConfig

return cloudCredential

case provider == providers.Tencent:
var tkeCredentialConfig TencentCredentialConfig

config.LoadConfig(TencentCredentialConfigurationFileKey, &tkeCredentialConfig)
cloudCredential.TencentCredentialConfig = &tkeCredentialConfig

return cloudCredential

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

0 comments on commit 79a5256

Please sign in to comment.