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 Managed Grafana v10 #28

Merged
merged 7 commits into from
May 15, 2024
Merged

Add support for Managed Grafana v10 #28

merged 7 commits into from
May 15, 2024

Conversation

bonclay7
Copy link
Member

What does this PR do?

  • Adds support for v10 workspaces
  • Introduces service account tokens for v9 and v10
  • Updates documentation

Motivation

More

  • Yes, I ran pre-commit run -a with this PR
  • Yes, I added unit tests for new code added (as much as possible)

Note: Not all the PRs require unit tests

Additional Notes

@bonclay7 bonclay7 merged commit a7f291a into main May 15, 2024
1 check passed
@bonclay7 bonclay7 deleted the mg-v10 branch May 15, 2024 19:47

1. Creating a Service Account

```console

Choose a reason for hiding this comment

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

Maybe you want to have an 'export' before this and grab the account id with jq. Theb just have this output be a bash environment variable. Then later on when the variable is used you can just say $SRC_SERVER_ACCOUNT_ID . That way people do not have to remember/scroll up and can just copy paste.

@@ -54,12 +54,5 @@ func (a *App) Run(srcCustomGrafanaClient CustomGrafanaClient) error {
log.Info()

Choose a reason for hiding this comment

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

Is this empty log message just to create a newline? You could just start the next one with '\n' , and then remove this. That way each call to log actually has a corresponding message.

@@ -14,15 +14,36 @@ import (
type api interface {

Choose a reason for hiding this comment

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

I think it's a little confusing to call this package aws, especially because you are importing aws-sdk-go/aws . Can this package be named something else. maybe 'api' ? Also, can we not use the aws-sdk-go-v2 packages here? I suppose that is outside the scope of this specific pull request.

Copy link

@lewinkedrs lewinkedrs left a comment

Choose a reason for hiding this comment

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

I left a few comments, but nothing that would stop me from releasing. LGTM

@bonclay7
Copy link
Member Author

Thanks Kevin, all valuable feedback. I'll issue another PR for some 🧹

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.

2 participants