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

Bump Terraform provider to v1.29.0 #926

Merged
merged 4 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@ cmd/workspace/warehouses/warehouses.go linguist-generated=true
cmd/workspace/workspace-bindings/workspace-bindings.go linguist-generated=true
cmd/workspace/workspace-conf/workspace-conf.go linguist-generated=true
cmd/workspace/workspace/workspace.go linguist-generated=true

# Hide diff for Go structs generated from databricks terraform provider schema
bundle/internal/tf/schema/*.go linguist-generated=true
6 changes: 6 additions & 0 deletions bundle/internal/tf/codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ Run with:
```go
go run .
```

How to regenerate Go structs from an updated terraform provider?
1. Bump version in ./schema/version.go
2. Delete `./tmp` if it exists
3. Run `go run .`
4. Run `gofmt -s -w ../schema`
2 changes: 1 addition & 1 deletion bundle/internal/tf/codegen/schema/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package schema

const ProviderVersion = "1.28.0"
const ProviderVersion = "1.29.0"
1 change: 1 addition & 0 deletions bundle/internal/tf/codegen/templates/root.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.
package schema

type Providers struct {
Expand Down
6 changes: 6 additions & 0 deletions bundle/internal/tf/schema/data_source_job.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions bundle/internal/tf/schema/resource_artifact_allowlist.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions bundle/internal/tf/schema/resource_job.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions bundle/internal/tf/schema/resource_sql_table.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bundle/internal/tf/schema/resources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion bundle/internal/tf/schema/root.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.