Skip to content

Commit 4fe230a

Browse files
kumadeepengq-google
authored andcommitted
fix: permadiff issue when docker_repository field is not specified (GoogleCloudPlatform#9850)
relates to GoogleCloudPlatform/cloud-foundation-fabric#1987 When docker repository is not specified by default docker repository`projects/PROJECT_ID/locations/REGION/repositories/gcf-artifacts` is used.In such a case, terraform plan always generates a difference for `docker_repository`field as the module passes null value but the tfstate file has the above specifieddefault value. This fix allows one to prevent unnecessary infrastructure change.
1 parent f75d986 commit 4fe230a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mmv1/products/cloudfunctions2/Function.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ properties:
422422
name: 'dockerRepository'
423423
description: |
424424
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
425+
default_from_api: true
425426
- !ruby/object:Api::Type::NestedObject
426427
name: 'serviceConfig'
427428
description: 'Describes the Service being deployed.'

0 commit comments

Comments
 (0)