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

Document default value of InstanceCredentialProvider #5188

Merged
merged 4 commits into from
Dec 23, 2023

Conversation

justinabrahms
Copy link
Contributor

Which issue does this PR close?

Closes #5187

Rationale for this change

Couldn't find this info out and wasted an hour or two

What changes are included in this PR?

docs changes

Are there any user-facing changes?

just docs.

@github-actions github-actions bot added the object-store Object Store Interface label Dec 7, 2023
@@ -393,7 +393,7 @@ impl GoogleCloudStorageBuilder {
self
}

/// Set the credential provider overriding any other options
/// Set the credential provider overriding any other options. Default: [`InstanceCredentialProvider`]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a crate-private struct, hence why the docs aren't building cleanly.

Perhaps we could instead add a comment on the builder itself that if no credentials are configured, it will default to using instance metadata credentials?

@@ -393,7 +393,6 @@ impl GoogleCloudStorageBuilder {
self
}

/// Set the credential provider overriding any other options
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this removal?

@@ -107,7 +107,7 @@ pub struct GoogleCloudStorageBuilder {
retry_config: RetryConfig,
/// Client options
client_options: ClientOptions,
/// Credentials
/// Credentials. Uses instance metadata credentials if not provided
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't be rendered on docs.rs as this is a private field, perhaps we could document on the struct, i.e. line 84

@tustvold
Copy link
Contributor

I took the liberty of getting this over the line

@tustvold tustvold added the documentation Improvements or additions to documentation label Dec 23, 2023
@tustvold tustvold merged commit c6f8bb5 into apache:master Dec 23, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[object_store,gcp] Document GoogleCloudStorage Default Credentials
2 participants