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

Typed resource ID helper #1395

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

julienduchesne
Copy link
Member

Each resource's ID is composed of n (>=1) string or integer elements
We can generalize this behavior and do the parsing/formatting in the helper function
This is extracted from #1391 and is part of a push to have standardized IDs for all resources, allowing for easier generation of TF code!

@julienduchesne julienduchesne requested review from a team as code owners March 2, 2024 14:08
Copy link

github-actions bot commented Mar 2, 2024

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

@julienduchesne julienduchesne force-pushed the julienduchesne/typed-resource-id branch from 2436395 to 2e5a47a Compare March 2, 2024 14:20
@@ -87,24 +86,14 @@ func testAccGrafanaAuthCheckServiceAccounts(stack *gcom.FormattedApiInstance, ex
return fmt.Errorf("failed to get service accounts: %w", err)
}

var foundSAs []string
Copy link
Member Author

Choose a reason for hiding this comment

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

This test is broken from a recent change to Grafana Cloud. Some service accounts are auto-provisioned into new stacks

Base automatically changed from julienduchesne/cloud-private to main March 5, 2024 13:46
Each resource's ID is composed of n (>=1) string or integer elements
We can generalize this behavior and do the parsing/formatting in the helper function
This is extracted from #1391 and is part of a push to have standardized IDs for all resources, allowing for easier generation of TF code!
@julienduchesne julienduchesne force-pushed the julienduchesne/typed-resource-id branch from 2e5a47a to 83eecfc Compare March 5, 2024 13:47
@julienduchesne julienduchesne merged commit d6e8d17 into main Mar 6, 2024
25 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/typed-resource-id branch March 6, 2024 19:19
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