Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

physical/gcs: use separate client for updating locks #9424

Merged
merged 3 commits into from
Jul 9, 2020
Merged

physical/gcs: use separate client for updating locks #9424

merged 3 commits into from
Jul 9, 2020

Conversation

sethvargo
Copy link
Contributor

Same rationale and design as #9423.


// Client
opts := []option.ClientOption{option.WithUserAgent(useragent.String())}
if credentialsFile := c["credentials_file"]; credentialsFile != "" {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been deprecated for a very, very long time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kalafut this might be fine to remove since we've had this notice for ~2yrs, but we should call this out in the changelog.

@sethvargo
Copy link
Contributor Author

Tests:

$ GOOGLE_PROJECT_ID=vs-test-282716 go test -v -count=1 ./physical/gcs/...
=== RUN   TestHABackend
2020-07-08T13:01:21.487-0400 [DEBUG] configuring backend
2020-07-08T13:01:21.487-0400 [DEBUG] creating client
2020-07-08T13:01:21.487-0400 [DEBUG] configuration: bucket=vault-gcs-testacc-4692478361493701885 chunk_size=8388608 ha_enabled=true max_parallel=0
2020-07-08T13:01:21.487-0400 [DEBUG] creating client
2020-07-08T13:01:21.487-0400 [DEBUG] configuring backend
2020-07-08T13:01:21.487-0400 [DEBUG] creating client
2020-07-08T13:01:21.487-0400 [DEBUG] configuration: bucket=vault-gcs-testacc-4692478361493701885 chunk_size=8388608 ha_enabled=true max_parallel=0
2020-07-08T13:01:21.487-0400 [DEBUG] creating client
--- PASS: TestHABackend (24.18s)
=== RUN   TestBackend
2020-07-08T13:01:45.457-0400 [DEBUG] configuring backend
2020-07-08T13:01:45.457-0400 [DEBUG] configuration: bucket=vault-gcs-testacc-8657908517170831413 chunk_size=8388608 ha_enabled=false max_parallel=0
2020-07-08T13:01:45.457-0400 [DEBUG] creating client
--- PASS: TestBackend (11.70s)
PASS
ok  	github.com/hashicorp/vault/physical/gcs	36.121s

@kalafut kalafut requested a review from calvn July 9, 2020 00:27

// Client
opts := []option.ClientOption{option.WithUserAgent(useragent.String())}
if credentialsFile := c["credentials_file"]; credentialsFile != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kalafut this might be fine to remove since we've had this notice for ~2yrs, but we should call this out in the changelog.

physical/gcs/gcs.go Outdated Show resolved Hide resolved
@sethvargo
Copy link
Contributor Author

@calvn updated - PTAL.

@calvn calvn merged commit 486ac45 into hashicorp:master Jul 9, 2020
calvn added a commit that referenced this pull request Jul 9, 2020
* physical/gcs: use separate client for updating locks

* Address review comments

Co-authored-by: Calvin Leung Huang <[email protected]>
calvn added a commit that referenced this pull request Jul 9, 2020
* physical/gcs: use separate client for updating locks

* Address review comments

Co-authored-by: Calvin Leung Huang <[email protected]>

Co-authored-by: Seth Vargo <[email protected]>
andaley pushed a commit that referenced this pull request Jul 17, 2020
* physical/gcs: use separate client for updating locks

* Address review comments

Co-authored-by: Calvin Leung Huang <[email protected]>
@sethvargo sethvargo deleted the sethvargo/gcs_locks branch November 17, 2020 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants