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

feat(storage): add support for IBM cloud object storage as storage client #8826

Merged
merged 18 commits into from
Mar 28, 2023

Conversation

athira-varghese
Copy link
Contributor

What this PR does / why we need it:
Add support for IBM cloud object storage as storage client

Which issue(s) this PR fixes:
Fixes NA

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated

@athira-varghese athira-varghese requested review from JStickler and a team as code owners March 17, 2023 07:50
@CLAassistant
Copy link

CLAassistant commented Mar 17, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Mar 17, 2023
@MasslessParticle
Copy link
Contributor

This looks great, thanks for contributing!

Please fix the conflicts and we'll be happy to merge

amankrsingh2000 and others added 14 commits March 18, 2023 07:53
Rebasing the code

Update config and test files with new changes

Update unit test for List

Arrange methods belong to mockCosClient together

Updated test cases to run independently

Co-authored-by: tareqmamari <[email protected]>
Added code to support IAM API Key Authentication

Update the conditions for api key

use default auth endpoint for cos

Use default auth endpoint instead of forcing to pass auth endpoint always
for COS storage provider.

Replace const to defaultCOSAuthEndpoint

Replace DEFAULT_COS_AUTH_ENDPOINT with defaultCOSAuthEndpoint

Also fixed error fmt.Errorf call needs 6 args but has 7 args

Added new cases in Test_COSConfig

Added unit test for IAM API Key Authentication

iam api key auth test formatting

These are just minor formatting changes for IAM API key authentication
tests.

lowercase clifags cos prefix and rename to hedgedCOS

Co-authored-by: tareqmamari <[email protected]>
Co-authored-by: amankrsingh2000 <[email protected]>
* Add documentation for COS as storage

* Address review comments
This commit fixes few linting for both the code base related to COS storage
as well as the docs updates.
@adityacs
Copy link
Contributor

@MasslessParticle We have resolved the conflicts and also fixed lint errors

Copy link
Contributor

@JStickler JStickler left a comment

Choose a reason for hiding this comment

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

[docs team] Couple of small suggestions.

docs/sources/alert/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
This commit addresses review comments regarding the COS-related docs.

Signed-off-by: Shahul <[email protected]>
@tareqmamari
Copy link
Contributor

@JStickler we have addressed the docs related comments.

Without this registration, default config will be picked instead.

Signed-off-by: Shahul <[email protected]>
Copy link
Contributor

@JStickler JStickler left a comment

Choose a reason for hiding this comment

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

[docs team] LGTM

@tareqmamari
Copy link
Contributor

@JStickler @MasslessParticle since this PR has been approved, is there anything else we should do to get it merged? Thank you!

@MasslessParticle MasslessParticle merged commit ffb961c into grafana:main Mar 28, 2023
grafanabot added a commit that referenced this pull request Sep 1, 2023
MasslessParticle added a commit that referenced this pull request Sep 1, 2023
… IBM cloud object storage as storage client (#10424)

Add PR #8826 to release notes for next release

---------

Co-authored-by: Travis Patterson <[email protected]>
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…ort for IBM cloud object storage as storage client (grafana#10424)

Add PR grafana#8826 to release notes for next release

---------

Co-authored-by: Travis Patterson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add-to-release-notes size/XXL type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants