Skip to content

Commit 45ab99d

Browse files
committed
add
1 parent bf72baf commit 45ab99d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tencentcloud/provider.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2482,8 +2482,9 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
24822482
if os.Getenv(POD_OIDC_TKE_REGION) != "" && os.Getenv(POD_OIDC_TKE_WEB_IDENTITY_TOKEN_FILE) != "" && os.Getenv(POD_OIDC_TKE_PROVIDER_ID) != "" && os.Getenv(POD_OIDC_TKE_ROLE_ARN) != "" {
24832483
err := genClientWithPodOidc(&tcClient)
24842484
if err != nil {
2485-
return nil, err
2485+
return nil, fmt.Errorf("Get auth from enable pod OIDC failed. Reason: %s", err.Error())
24862486
}
2487+
24872488
needSecret = false
24882489
} else {
24892490
return nil, fmt.Errorf("Can not get `TKE_REGION`, `TKE_WEB_IDENTITY_TOKEN_FILE`, `TKE_PROVIDER_ID`, `TKE_ROLE_ARN`. Must config serviceAccountName for pod.\n")

0 commit comments

Comments
 (0)