-
Notifications
You must be signed in to change notification settings - Fork 925
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
Specify docker_repository
field for google_cloudfunctions2_function
#1987
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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 specified default value. This fix allows one to prevent unnecessary infrastructure change when using the default repository as well as any user created repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The permadiff should be fixed in the provider, as optional fields which are not specified should not generate a change once the resource is created.
Adding the variable to be able to use a non-default repository does of course make sense, thanks for this PR.
Cool. I can raise the PR to fix the permadiff in the provider next week. |
this would be great, thanks a lot! :) |
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.
…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.
…ashicorp#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. [upstream:3540e663502c1286967dd61650bb8ee7c2b35cf9] Signed-off-by: Modular Magician <[email protected]>
…(#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. [upstream:3540e663502c1286967dd61650bb8ee7c2b35cf9] Signed-off-by: Modular Magician <[email protected]>
…9850) (#17072) 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. [upstream:3540e663502c1286967dd61650bb8ee7c2b35cf9] Signed-off-by: Modular Magician <[email protected]>
…(#9850) (#6887) 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. [upstream:3540e663502c1286967dd61650bb8ee7c2b35cf9] Signed-off-by: Modular Magician <[email protected]>
…(#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. [upstream:3540e663502c1286967dd61650bb8ee7c2b35cf9] Signed-off-by: Modular Magician <[email protected]>
…(#9850) (#1889) 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. [upstream:3540e663502c1286967dd61650bb8ee7c2b35cf9] Signed-off-by: Modular Magician <[email protected]>
…oogleCloudPlatform#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.
…oogleCloudPlatform#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.
…oogleCloudPlatform#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.
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 specified default value.This fix allows one to prevent unnecessary infrastructure change by setting the default repository id as well as any user created repository.
Checklist
I applicable, I acknowledge that I have:
terraform fmt
on all modified filestools/tfdoc.py