Skip to content

Commit

Permalink
Removed the support of credential_file config argument (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
misraved authored Oct 22, 2024
1 parent dca1849 commit 218f6f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion gcp/connection_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
type gcpConfig struct {
Project *string `hcl:"project"`
Credentials *string `hcl:"credentials"`
CredentialFile *string `hcl:"credential_file"`
ImpersonateAccessToken *string `hcl:"impersonate_access_token"`
ImpersonateServiceAccount *string `hcl:"impersonate_service_account"`
IgnoreErrorCodes []string `hcl:"ignore_error_codes,optional"`
Expand Down
3 changes: 0 additions & 3 deletions gcp/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,7 @@ func setSessionConfig(ctx context.Context, connection *plugin.Connection) []opti
panic(err)
}
opts = append(opts, option.WithCredentialsJSON([]byte(contents)))
} else if gcpConfig.CredentialFile != nil {
opts = append(opts, option.WithCredentialsFile(*gcpConfig.CredentialFile))
}

if gcpConfig.ImpersonateAccessToken != nil {
tokenConfig := oauth2.Token{
AccessToken: *gcpConfig.ImpersonateAccessToken,
Expand Down

0 comments on commit 218f6f2

Please sign in to comment.