Skip to content

Commit 3c25c2d

Browse files
fix permadiff issue in google_cloudfunctions2_function service_config.environment_variables (#11333) (#19024)
[upstream:941065fec9456e7eeba0199f99066213434a2c68] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 6aa9b76 commit 3c25c2d

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.changelog/11333.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
cloudfunctions2: fixed a "Provider produced inconsistent final plan" bug affecting the `service_config.environment_variables` field in `google_cloudfunctions2_function` resource
3+
```

google/services/cloudfunctions2/resource_cloudfunctions2_function.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ supplied the value is interpreted as bytes.`,
367367
},
368368
"environment_variables": {
369369
Type: schema.TypeMap,
370+
Computed: true,
370371
Optional: true,
371372
DiffSuppressFunc: environmentVariablesDiffSuppress,
372373
Description: `Environment variables that shall be available during function execution.`,

google/services/cloudfunctions2/resource_cloudfunctions2_function_generated_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ resource "google_cloudfunctions2_function" "function" {
185185
max_instance_request_concurrency = 80
186186
available_cpu = "4"
187187
environment_variables = {
188-
SERVICE_CONFIG_TEST = "config_test"
188+
SERVICE_CONFIG_TEST = "config_test"
189+
SERVICE_CONFIG_DIFF_TEST = google_service_account.account.email
189190
}
190191
ingress_settings = "ALLOW_INTERNAL_ONLY"
191192
all_traffic_on_latest_revision = true

website/docs/r/cloudfunctions2_function.html.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ resource "google_cloudfunctions2_function" "function" {
125125
max_instance_request_concurrency = 80
126126
available_cpu = "4"
127127
environment_variables = {
128-
SERVICE_CONFIG_TEST = "config_test"
128+
SERVICE_CONFIG_TEST = "config_test"
129+
SERVICE_CONFIG_DIFF_TEST = google_service_account.account.email
129130
}
130131
ingress_settings = "ALLOW_INTERNAL_ONLY"
131132
all_traffic_on_latest_revision = true

0 commit comments

Comments
 (0)