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

tools/generator-terraform: refactoring to use the new Data API SDK [Phase 5] #3800

Merged
merged 14 commits into from
Feb 19, 2024

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Feb 15, 2024

This PR updates the generator-terraform tool to use the new Data API SDK/Models.

This includes only the minimal set of changes needed for this to compile and run with no changes - whilst there's some additional cleanup needed here I've laid the foundation for some of this (logging) before realising this needed to be split out.

This changeset also includes support for the Source Data Type - although at the current time we're still making Resource Manager expectations throughout the codebase, so it's mostly a placeholder for now.

Dependent on #3784

@tombuildsstuff tombuildsstuff changed the base branch from main to refactor/1-duplicating-models February 15, 2024 09:20
@tombuildsstuff tombuildsstuff changed the title .Refactor/5 terraform generator tools/generator-terraform: refactoring to use the new Data API SDK Feb 15, 2024
@tombuildsstuff tombuildsstuff added tool/generator-terraform Issues with the Terraform Generator refactor labels Feb 15, 2024
@tombuildsstuff tombuildsstuff changed the title tools/generator-terraform: refactoring to use the new Data API SDK tools/generator-terraform: refactoring to use the new Data API SDK [Phase 5] Feb 15, 2024
Base automatically changed from refactor/1-duplicating-models to main February 15, 2024 10:04
@tombuildsstuff tombuildsstuff force-pushed the refactor/5-terraform-generator branch from 58f733b to 84575e2 Compare February 15, 2024 10:39
@tombuildsstuff tombuildsstuff requested a review from a team February 15, 2024 10:39
@tombuildsstuff tombuildsstuff marked this pull request as ready for review February 15, 2024 10:39
@tombuildsstuff tombuildsstuff changed the title tools/generator-terraform: refactoring to use the new Data API SDK [Phase 5] tools/generator-terraform: refactoring to use the new Data API SDK [Phase 5 Part 1] Feb 15, 2024
@tombuildsstuff tombuildsstuff changed the title tools/generator-terraform: refactoring to use the new Data API SDK [Phase 5 Part 1] tools/generator-terraform: refactoring to use the new Data API SDK [Phase 5] Feb 15, 2024
Copy link
Member

@catriona-m catriona-m left a comment

Choose a reason for hiding this comment

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

LGTM!

tools/generator-terraform/internal/generator/run.go Outdated Show resolved Hide resolved
@tombuildsstuff tombuildsstuff merged commit d31ad58 into main Feb 19, 2024
2 checks passed
@tombuildsstuff tombuildsstuff deleted the refactor/5-terraform-generator branch February 19, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor tool/generator-terraform Issues with the Terraform Generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants