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

Add support for additional storage backends in operator #5432

Merged
merged 5 commits into from
Feb 24, 2022

Conversation

Red-GV
Copy link
Contributor

@Red-GV Red-GV commented Feb 18, 2022

What this PR does / why we need it:
This PR adds Azure, GCS, and Swift as storage options for the Loki Operator. Loki already provides support for these storage types and an easy configuration for multiple components through the common_config. This PR implements the usage of a ObjectStorageSecretType to allow the operator to understand what type of storage it will be utilizing. Like the existing storage configuration, the human operator would need to know what components need to be in the secret for Loki to be able to access the storage.

Which issue(s) this PR fixes:
Fixes #4974

Special notes for your reviewer:
Local File System was left out of this PR as it didn't make sense to have a path directory in a secret.

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

@Red-GV Red-GV requested a review from a team as a code owner February 18, 2022 22:16
@Red-GV Red-GV force-pushed the operator-common-storage-config branch 2 times, most recently from 56e81d0 to 2b54f31 Compare February 18, 2022 22:25
Copy link
Collaborator

@xperimental xperimental left a comment

Choose a reason for hiding this comment

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

Did a first pass of the source code but did not test this yet in any deployment. The change looks pretty straight-forward though, so I don't expect any surprises when testing.

operator/api/v1beta1/lokistack_types.go Outdated Show resolved Hide resolved
operator/cmd/loki-broker/main.go Outdated Show resolved Hide resolved
operator/cmd/loki-broker/main.go Outdated Show resolved Hide resolved
operator/api/v1beta1/lokistack_types.go Outdated Show resolved Hide resolved
operator/internal/handlers/internal/secrets/secrets.go Outdated Show resolved Hide resolved
operator/internal/handlers/lokistack_create_or_update.go Outdated Show resolved Hide resolved
operator/internal/manifests/internal/config/options.go Outdated Show resolved Hide resolved
@Red-GV Red-GV force-pushed the operator-common-storage-config branch from 2b54f31 to cde4a57 Compare February 22, 2022 19:51
Copy link
Collaborator

@xperimental xperimental left a comment

Choose a reason for hiding this comment

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

Nearly there, just some minor stuff and the question in loki-broker remaining.

operator/internal/handlers/lokistack_create_or_update.go Outdated Show resolved Hide resolved
operator/internal/manifests/internal/config/build_test.go Outdated Show resolved Hide resolved
@Red-GV Red-GV force-pushed the operator-common-storage-config branch from 3fcc269 to 8311977 Compare February 23, 2022 23:49
@Red-GV Red-GV force-pushed the operator-common-storage-config branch from 8311977 to ce42f92 Compare February 24, 2022 13:27
@xperimental xperimental changed the title [operator] Multiple Storage Configurations Add support for additional storage backends in operator Feb 24, 2022
@xperimental xperimental merged commit 8f6d3d9 into grafana:main Feb 24, 2022
@Red-GV Red-GV deleted the operator-common-storage-config branch August 22, 2022 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[operator] Add support for none S3 object storage like azure
2 participants