Skip to content
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

Upgrade gcloud module to 2.0.0 #449

Merged

Conversation

Dev25
Copy link
Contributor

@Dev25 Dev25 commented Aug 27, 2020

https://github.com/terraform-google-modules/terraform-google-gcloud/releases/tag/v2.0.0

The module has been changed to not download gcloud by default. You can override this behavior by setting skip_download = false or setting the GCLOUD_TF_DOWNLOAD environment variable to "always".

Also setting skip_gcloud_download to true by default

Signed-off-by: Dev <devan@ingresso.co.uk>
Dev added 2 commits August 27, 2020 12:00
Signed-off-by: Dev <devan@ingresso.co.uk>
Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Dev25

@morgante
Copy link
Contributor

@bharathkkb @Dev25 What do you think of dropping the skip variables entirely? Now that we have the env-based approach I think it's much more robust.

@Dev25
Copy link
Contributor Author

Dev25 commented Aug 27, 2020

I would be in favour of that @morgante
Do you know if the docker image already sets that var so we can rely on that for CI?

@morgante
Copy link
Contributor

Do you know if the docker image already sets that var so we can rely on that for CI?

With the 2.0 version, the default is now to skip so we can rely on that.

@bharathkkb
Copy link
Member

@morgante I agree as well. TF cloud also seems to let you set env vars, so users should be able to use that. However in the CI imho we should still test the codepath of enabling via GCLOUD_TF_DOWNLOAD for one of the int tests.

@morgante
Copy link
Contributor

morgante commented Aug 27, 2020

@bharathkkb We test the override here - https://github.com/terraform-google-modules/terraform-google-gcloud/tree/master/test/fixtures/override_example

Sounds like we're all in agreement.

Let's try to add a follow up PR which removes all skip downloads.

@morgante morgante merged commit 099cdcc into terraform-google-modules:master Aug 27, 2020
@Dev25 Dev25 deleted the pin-gcloud-v2 branch August 27, 2020 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants