Commit Graph

2673 Commits

Author SHA1 Message Date
Paddy
a8fdf4033e
Fix trailing comma
JSON is the worst.
2018-10-02 02:44:17 -07:00
Paddy Carver
2fc8da91e7 Fix Dana's comments, expand images to self_links.
Fix Dana's comments, one of which exposed a bug: we weren't actually
fixing the diff. Because resolveImage can return multiple formats, and
only returns a self_link if a self_link is passed in, it was diffing
more often than not against a self_link supplied in the config. We just
had a bug in our CustomizeDiff function that concealed this.

I added the resolvedImageSelfLink helper function to turn the output
from resolveImage into a self_link, which fixes the problem. It also has
the knock-on effect of fixing #2067 at the same time, which is nice. I
decided to add another function instead of just modifying resolveImage
to always return a self_link because I don't want to deal with the
backwards compatibility problems of changing how we're storing a bunch
of things in state this close to 1.19.0. And honestly, we should
probably just be storing the self_link always, _anyways_.
2018-10-02 01:11:03 -07:00
Paddy Carver
75c20b4246 Update helper/schema vendor.
Update the version of helper/schema we have vendored to take advantage
of fixes to the ResourceDiff.Clear function.
2018-09-26 14:22:52 -07:00
Paddy Carver
5cf6a5d131 Fix perma-diff on instance templates.
When using instance templates, if you use one of our image shorthands at
the moment, you'll get a perma-diff. This is because the config gets
resolved to another format before it is set in state, and so we need to
set that other format in state.

Unfortunately, resolving images requires network access, so we have to
do this with CustomizeDiff. CustomizeDiff was having trouble (I think?
More on this below) on setting a field as not ForceNew once the field
was already set, so I moved the decision for whether a field was
ForceNew or not into CustomizeDiff. I also resolved the old and new
images, and if they were the same, cleared the diff.

Unfortunately, you can't actually clear a field on a sub-block right
now. You have to clear top-level fields only. So this will currently
throw an error. I opened hashicorp/terraform#18795 to fix that. Once
that's merged, and we vendor it here, this patch fixes the problem.

If hashicorp/terraform#18795 doesn't get merged, the next best
workaround is to keep track of _all_ the fields under `disk` with a diff
in our CustomizeDiff, check whether they've all changed or not, and if
they've all changed, clear the changes on `disk`, which I _think_ will
resolve the issue. That's just a massive pain, unfortunately.
2018-09-05 17:35:44 -07:00
Paddy
7911cab2e4
Merge pull request #1933 from terraform-providers/paddy_issue_templates
Use differentiated issue templates.
2018-09-05 15:48:07 -07:00
Paddy
3597b8ddf6
Update question.md 2018-09-05 15:43:58 -07:00
Paddy
88cfca000f
Delete success-story.md 2018-09-05 15:42:23 -07:00
Paddy
aa040a0b42
Update enhancement.md 2018-09-05 15:39:12 -07:00
Paddy
ae3bf9a84f
Update enhancement.md 2018-09-05 15:38:51 -07:00
Paddy
fc197d4321
Update bug.md 2018-09-05 15:38:24 -07:00
David Alger
526fb51824 Correct google_compute_ssl_certificate import example (#1970) 2018-09-05 15:34:47 -07:00
Paddy
6cf87b4014
Update CHANGELOG.md 2018-09-05 15:34:09 -07:00
Paddy
3effce0891
Merge pull request #1994 from terraform-providers/paddy_1_11-1
Use Go v1.11.0
2018-09-05 15:29:23 -07:00
Chris Stephens
2285774522
Merge pull request #1993 from chrisst/remove-old-vendors
Remove vendor code for UUIDs
2018-09-05 15:28:08 -07:00
Paddy Carver
010c0f3288 Update README and run fmt. 2018-09-05 15:24:22 -07:00
Paddy
e2a7bf1cf7
Use Go v1.11.0 2018-09-05 15:20:00 -07:00
Chris Stephens
a291a19c0c
Merge pull request #1990 from chrisst/is-1703-docs
Improving billing logging sink docs
2018-09-05 15:19:11 -07:00
Chris Stephens
70e55920d6 Improving billing logging sink docs 2018-09-05 15:08:42 -07:00
Chris Stephens
404e7297f0 Remove vendor code for UUIDs
This doesn't appear to be used anywhere within this project.
Additionally Hashicorp has their own [uuid library](https://github.com/hashicorp/go-uuid)
which is used internally.
2018-09-05 14:22:13 -07:00
Chris Stephens
eb5f1a7767
Merge pull request #1991 from chrisst/update-vendored-dns
Updating the GCP dns api client.
2018-09-05 14:18:37 -07:00
Chris Stephens
abcd2179de Updating the GCP dns api client. 2018-09-05 14:13:53 -07:00
Riley Karson
c8ba3c0b3f
Cleaned up google_project_usage_export_bucket code and docs. (#1922) 2018-09-05 10:31:35 -07:00
Seth Vargo
96cb1fbc16 Encourage users to set lifecycle hooks on kms_crypto_key resources (#1896)
@michaelharo suggested this would be a good best practice for this particular resource to prevent users from accidentally deleting a bunch of encryption keys on a -/+ and losing data, and I agree.

This commit adds a quick documentation blurb saying what actually happens if those crypto key versions are destroyed and also updates the snippet to showcase a lifecycle hook.
2018-09-05 09:59:41 -07:00
Dana Hoffman
37534f542d
Update CHANGELOG.md 2018-09-05 09:53:02 -07:00
Nathan McKinley
9065b5a624 Addition of create_subnetwork and other fields relevant for Alias IPs (#1921)
* Addition of create_subnetwork and use_ip_aliases.

* add fields for [cluster|services]_ipv4_cidr_block and subnetwork_name
2018-09-05 09:52:06 -07:00
Paddy
9258781753
Merge pull request #1972 from terraform-providers/paddy_update_logging
Update logging vendor.
2018-08-31 10:46:15 -07:00
Paddy Carver
f946490db2 Update logging vendor.
Update the vendored version of our logging helper, so we get requests
printed.
2018-08-31 10:13:52 -07:00
Chris Stephens
e6af1c2a7d
Merge pull request #1958 from chrisst/debian-8-docs
updating examples in documentation for debian-9
2018-08-30 12:39:20 -07:00
Riley Karson
ca0317037b
Update CHANGELOG.md 2018-08-29 14:19:09 -07:00
Chris Stephens
ea6b4ff881 updating examples in documentation for debian-9 2018-08-28 16:58:27 -07:00
emily
27ade47e5a
Fixes for importing sql database instances (#1956)
* fix importing for sql resources

* fmt

* fix id for sql db import, tests

* change test names to be more specific
2018-08-28 16:51:37 -07:00
The Magician
2afafa0573 Magic Modules changes. (#1951) 2018-08-28 16:48:00 -07:00
emily
10ec7b2ca9
Use beta API location for google_container_engine_versions (#1939)
* use beta API location for  data source

* doc fixes

* use getLocation

* add note to docs about required locations
2018-08-28 11:37:07 -07:00
The Magician
f1f0bc97e2 Autogenerate HealthCheck resource (#1941) 2018-08-27 16:35:47 -07:00
emily
83406c3c5f
fix possible error from nil check (#1942) 2018-08-27 16:22:06 -07:00
emily
7e82a982e4
Fix service account key data source name (#1932)
* fix service account key data source name

* switch id to name

* update docs

* doc format

* fixes for validation and tests

* last fixes for service account key data source
2018-08-24 15:29:27 -07:00
Chris Stephens
5b7da72291 Force acceptance test failure if .Set errors (#1934)
Many of the d.Set calls do not handle the error that comes back. This can lead
to things that appear to be set but are silently failing. This change adds a
flag to the makefile to force a panic if there are unhandled errors.
2018-08-23 11:53:18 -07:00
Chris Stephens
d7a67e13fb Ignore google provider binary (#1935)
Running go build in the root dir will create this binary
2018-08-23 11:52:14 -07:00
Paddy
2e76b3c1da
Delete bug_report.md 2018-08-22 17:27:47 -07:00
Paddy
b69754ae38
Delete feature_request.md 2018-08-22 17:27:35 -07:00
Paddy
4678bee194 Use differentiated issue templates.
I largely stole these from github.com/terraform-providers/terraform-provider-aws, but with a few changes:

* I called out how we assign users to issues, to make it more transparent to users.
* I added a "success story" issue that will be automatically closed and labeled, to keep track of those stories.
* I added a `[issue-type:TYPE]` string to each, so hashibot can detect and act on them.
2018-08-22 17:16:22 -07:00
emily
96b17536b9
Initial TF commits needed for cloud composer support (#1926)
* add cloud composer vendor

* init composer client and resource map
2018-08-22 15:59:05 -07:00
Paddy
583fc3989a
Update CHANGELOG.md 2018-08-22 14:46:26 -07:00
Paddy
5d48dc81d2
Merge pull request #1916 from terraform-providers/paddy_disk_image_url_in_templates
Always set instance template source images on read.
2018-08-22 14:42:44 -07:00
tf-release-bot
d24ca56bd8 Cleanup after v1.17.1 release 2018-08-22 19:55:39 +00:00
tf-release-bot
c44a28bd1b
v1.17.1 2018-08-22 19:51:57 +00:00
Dana Hoffman
67c670c55d
Update CHANGELOG.md 2018-08-22 12:48:21 -07:00
Dana Hoffman
d90e7fb4f6
fix panic on gke binauth (#1924) 2018-08-22 12:47:43 -07:00
Dana Hoffman
9b7f435ec3
Revert "revendor hashicorp/terraform (#1923)" (#1925)
This reverts commit 654350d3d3.
2018-08-22 12:46:58 -07:00
Dana Hoffman
654350d3d3
revendor hashicorp/terraform (#1923)
`govendor fetch github.com/hashicorp/terraform/...@v0.11.8`

I figured this was a good time to do it since we just had a release. I verified that everything still compiles and that a few tests are passing- I don't expect anything else to change, but if there are any weird failures that this exposes we'll catch them in CI with plenty of time before the next release.
2018-08-22 12:13:40 -07:00