From 3fbe78bcf18d6c7d219d14eaf4b3afac4cc669cc Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Mon, 18 Oct 2021 15:55:37 +0000 Subject: [PATCH] Fix `google_cloud_run_service` permadiff on `template.spec.containers.ports.name` (#5331) Co-authored-by: upodroid Signed-off-by: Modular Magician --- .changelog/5331.txt | 3 +++ google/resource_cloud_run_service.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/5331.txt diff --git a/.changelog/5331.txt b/.changelog/5331.txt new file mode 100644 index 00000000000..eea182839f8 --- /dev/null +++ b/.changelog/5331.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +cloudrun: fixed a permadiff on the field `template.spec.containers.ports.name` of the `google_cloud_run_service` resource +``` diff --git a/google/resource_cloud_run_service.go b/google/resource_cloud_run_service.go index e23750d7006..69431710b6d 100644 --- a/google/resource_cloud_run_service.go +++ b/google/resource_cloud_run_service.go @@ -300,6 +300,7 @@ https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort`, }, "name": { Type: schema.TypeString, + Computed: true, Optional: true, Description: `Name of the port.`, },