Skip to content

Add default value to env.value to fix the plan diffs in cloud run services #9572

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

Conversation

modular-magician
Copy link
Collaborator

fixes b/240147716
fixes hashicorp/terraform-provider-google#7467
fixes hashicorp/terraform-provider-google#10634

This change will fix the diffs for unchanged env. env is a set. The env.value has value "" in Terraform state, but it has value nil in Terraform plan, which causes the diffs for unchanged env.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

cloudrun: fixed the perma-diffs for unchanged `template.spec.containers.env` in `google_cloud_run_service` resource
cloudrunv2: fixed the perma-diffs for unchanged `template.containers.env` in `google_cloud_run_v2_service` resource

Derived from GoogleCloudPlatform/magic-modules#13363

…vices (#13363)

[upstream:1c971ce603e30f22ddb5981055f41b31d6a90e37]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner March 18, 2025 16:46
@modular-magician modular-magician merged commit 5ff8456 into hashicorp:main Mar 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant