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 version to v4.56.0 #252

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Mar 9, 2023

Description of your changes

Depends on: crossplane/upjet#172

This PR bumps the underlying Terraform provider version to v4.56.0.

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Tested resources reported by crddiff:

@ulucinar
Copy link
Collaborator Author

ulucinar commented Mar 9, 2023

/test-examples="examples/cloudplatform/serviceaccount.yaml"

@ulucinar
Copy link
Collaborator Author

ulucinar commented Mar 9, 2023

/test-examples="examples/containerazure/cluster.yaml"

@ulucinar
Copy link
Collaborator Author

ulucinar commented Mar 9, 2023

/test-examples="examples/sql/instance.yaml"

@ulucinar
Copy link
Collaborator Author

ulucinar commented Mar 9, 2023

Two MR definitions are reported to have breaking changes: containerazure.gcp.upbound.io_clusters and sql.gcp.upbound.io_databaseinstances.

No resources have been reported by the schemadiff tool.

@ulucinar
Copy link
Collaborator Author

ulucinar commented Mar 9, 2023

/test-examples="examples/containerazure/cluster.yaml"

@ulucinar
Copy link
Collaborator Author

ulucinar commented Mar 9, 2023

/test-examples="examples/sql/instance.yaml"

Copy link
Collaborator

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@@ -31,6 +31,9 @@ const (
// ResourceConfigurators.
func Configure(p *config.Provider) { //nolint:gocyclo
p.AddResourceConfigurator("google_sql_database_instance", func(r *config.Resource) {
// we need to workaround the newly added (with v4.56.0)
// of `Optional=True` in the native provider
config.MoveToStatus(r.TerraformResource, "instance_type")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In v4.56.0 of the Terraform Google provider, Optional: true has been added to the native schema of the instance_type attribute, which moves the generated field to spec. We need to move it back to status.

@ulucinar ulucinar merged commit 3b623bf into crossplane-contrib:main Mar 10, 2023
@ulucinar ulucinar deleted the bump-tf-4.56.0 branch March 10, 2023 12:15
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