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

Cloud settings in Grafana Azure SDK #78

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

kostrse
Copy link
Collaborator

@kostrse kostrse commented Jan 9, 2024

This PR aggregates all cloud-specific settings (endpoints, audiences etc.) into the Grafana Azure SDK, so they could be managed from the single place.

This would allow datasources to pull endpoints etc. from the SDK rather than hardcoding them in the datasource code.

AzureSettings structure gets two new methods:

  • Clouds() []AzureCloudInfo returns a list of available clouds (canonical name and display name)
  • GetCloud(cloudName string) (*AzureCloudSettings, error) returns settings for the given cloudName.

See grafana/grafana#80187 for reference.

azsettings/cloud_settings.go Outdated Show resolved Hide resolved
azsettings/cloud_settings.go Outdated Show resolved Hide resolved
@kostrse
Copy link
Collaborator Author

kostrse commented Jan 16, 2024

I resolved the comments.

@kostrse
Copy link
Collaborator Author

kostrse commented Jan 18, 2024

@aangelisc I cannot merge myself for some reason

@aangelisc aangelisc merged commit 45ff3be into grafana:main Jan 19, 2024
3 checks passed
@kostrse kostrse deleted the cloud-settings-in-sdk branch January 19, 2024 15:01
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.

None yet

2 participants