diff --git a/.changelog/9850.txt b/.changelog/9850.txt new file mode 100644 index 0000000000..78e9fee961 --- /dev/null +++ b/.changelog/9850.txt @@ -0,0 +1,3 @@ +```release-note:bug +Fixed an issue when `docker_repository` is not specified in build_config section of the `google_cloudfunctions2_function`, the provider should not generate a diff during plan for the default value used by the API. +``` diff --git a/google-beta/services/cloudfunctions2/resource_cloudfunctions2_function.go b/google-beta/services/cloudfunctions2/resource_cloudfunctions2_function.go index 43b1f3ea6d..9d1375e9f5 100644 --- a/google-beta/services/cloudfunctions2/resource_cloudfunctions2_function.go +++ b/google-beta/services/cloudfunctions2/resource_cloudfunctions2_function.go @@ -78,6 +78,7 @@ from the given source.`, Schema: map[string]*schema.Schema{ "docker_repository": { Type: schema.TypeString, + Computed: true, Optional: true, Description: `User managed repository created in Artifact Registry optionally with a customer managed encryption key.`, },