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

operator: Allow endpoint_suffix in azure object storage secret #10715

Merged
merged 5 commits into from
Oct 2, 2023

Conversation

periklis
Copy link
Collaborator

What this PR does / why we need it:
Enable using LokiStack with Azure Blob Storage behind a private endpoint.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
    • If the change is worth mentioning in the release notes, add add-to-release-notes label
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR

@periklis periklis self-assigned this Sep 26, 2023
@periklis periklis requested a review from a team as a code owner September 26, 2023 11:44
Copy link
Collaborator

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

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

Just one minor comment, still have to test

Comment on lines +59 to +60
// Extract and validate optional fields
endpointSuffix := s.Data["endpoint_suffix"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm a bit confused by the comment, we are only extracting the field correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's just a hint to make the section more human readable. I imagine that we extra more optional fields if requested.

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.

I tested this on a cluster by providing bogus secret values and checking the generated config. It seems fine, just one small comment.

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.

Generation works, but I've not tested with any "real" Azure bucket.

@periklis periklis merged commit 8d6bcd4 into grafana:main Oct 2, 2023
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…na#10715)

Co-authored-by: Robert Jacob <xperimental@solidproject.de>
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.

3 participants