Commit Graph

3041 Commits

Author SHA1 Message Date
Riley Karson
a8747b4909 Deprecate handwritten beta fields. 2018-10-02 14:44:09 -07:00
Paddy Carver
3ab8e95ef6 Pretend to delete, no error. 2018-10-02 14:15:31 -07:00
Paddy
b5c36b0fbf
Update CHANGELOG.md 2018-10-02 14:13:52 -07:00
Paddy
c1d404ddc1
Merge pull request #1995 from terraform-providers/paddy_1916_diff_fix
Fix perma-diff on instance templates.
2018-10-02 14:13:15 -07:00
Dana Hoffman
27bd76d9d4
Update CHANGELOG.md 2018-10-02 12:40:37 -07:00
Dana Hoffman
546401277a
Make max_pods_per_node ForceNew (#2139)
I don't see any way of updating in the API, and even if there were, we aren't calling it right now.

Fixes #2084
2018-10-02 12:40:12 -07:00
Emily Ye
6c7f7aa907 actually add composer docs to sidebar 2018-10-02 12:15:14 -07:00
Paddy Carver
9ceb644460 Add google_app_engine_application resource.
Deprecate the app_engine sub-block of google_project, and create a
google_app_engine_application resource instead. Also, add some tests for
its behaviour, as well as some documentation for it.

Note that this is largely an implementation of the ideas discussed in
 #2118, except we're not using CustomizeDiff to reject deletions without
our special flag set, because CustomizeDiff apparently doesn't run on
Delete. Who knew? This leaves us rejecting the deletion at apply time,
which is less than ideal, but the only other option I see is to silently
not delete the resource, and that's... not ideal, either.

This also stops the app_engine sub-block on google_project from forcing
new when it's removed, and sets it to computed, so users can safely move
from using the sub-block to using the resource without state surgery or
deleting their entire project. This does mean it's impossible to delete
an App Engine application from a sub-block now, but seeing as that was
the same situation before, and we just papered over it by making the
project recreate itself in that situation, and people Were Not Fans of
that, I'm considering that an acceptable casualty.
2018-10-02 02:59:17 -07:00
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
Dana Hoffman
436543bc37
Update CHANGELOG.md 2018-10-01 11:08:36 -07:00
Dana Hoffman
250cfa351c
fix instance template interaction with regional disks, make docs more clear about valid values (#2138) 2018-10-01 11:07:56 -07:00
The Magician
98a608777c use ga api for redis (#2136)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-10-01 10:09:07 -07:00
The Magician
aec2987415 use beta api for container analysis (#2135)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-10-01 09:56:04 -07:00
Dana Hoffman
ddfba9e564
Update CHANGELOG.md 2018-10-01 09:42:18 -07:00
Alex Barron
70faf686b5 Add "enable_tpu" flag to google_container_cluster (#1974)
* add enable_tpu flag

* missed one

* add docs

* fix test

* tabs

* update tests to new format

* formatting

* formatting
2018-10-01 09:41:54 -07:00
The Magician
1f0eae579f Bugfix: Stop reading region from Redis API. (#2133)
Bugfix: Stop reading region from Redis API, remove unnecessary Flatten methods.
2018-09-28 15:10:55 -07:00
The Magician
063f1ba4b1 Fix docs for BinAuth Policy cluster_admission_rules (#2125)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-28 12:48:46 -07:00
The Magician
10af01f76e Do not send empty values for nested properties (#2117)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-09-28 09:47:20 -07:00
The Magician
61240c3bac Fix TestAccComputeRoute_routeBasicExample (#2124)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-27 10:02:50 -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
Riley Karson
9f0b792f09
Update CHANGELOG.md 2018-09-26 11:22:36 -07:00
Riley Karson
41d47ec8bb
Deprecate address in compute_instance family, undeprecate network_ip (#2096)
Also remove a duplicate instance test I noticed for ephemeral ips.
2018-09-26 11:19:25 -07:00
Paddy
33d900537d
Merge pull request #2102 from nownabe/missing-cloudbuild-doc
Update google_cloudbuild_trigger documentation
2018-09-26 11:07:40 -07:00
Paddy
63d7e3ed33
Update CHANGELOG.md 2018-09-26 11:06:10 -07:00
Paddy
a395142913
Merge pull request #2090 from terraform-providers/paddy_1292
Check for project deletion when refreshing/deleting project_service.
2018-09-26 11:05:13 -07:00
Riley Karson
8c0bc93771
Vendor random provider to allow use in tests (#2110)
Support for an upcoming generated PR.
2018-09-25 15:09:13 -07:00
Dana Hoffman
9960e2fa62
Simplify GKE cluster code (#2105)
We don't need quite so many `GetOk`s since the client library will ignore any fields that are set to the zero value for that type. I left a few that involved error-handling or things that had to be set before other things, but this at least should make the code a bit nicer to look at.

Tests are passing except the ones that were already failing in CI.
2018-09-25 11:42:37 -07:00
Paddy
583b8f6192
Merge pull request #2069 from spesnova/spesnova/update-google-iam-policy-doc
Replace "Google Apps domain" with "G Suite domain"
2018-09-25 11:08:30 -07:00
The Magician
d60c05dc30 Magic Modules changes. (#2106) 2018-09-24 15:35:43 -07:00
The Magician
7fb247ee04 Add tests for several compute resource examples, rearrange examples in docs (#2097)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-24 13:54:33 -07:00
nownabe
f64ac057ab
Update google_cloudbuild_trigger documentation
* Order arguments alphabetically
* Add missing argument 'project'
2018-09-24 13:15:38 +09:00
Seigo Uchida
ac88a5fc95 Replace "Google Apps domain" with "G Suite domain"
Google Apps is a former name.

Also, I mention primary domain and domain alias. It seems I have
to use the primary domain. Otherwise, GCP replaces the field to the primary one.
And every time Terraform plan returns a diff about it.

I used domain alias for `members` arg in `google_project_iam_member`
resource. `terraform apply` was succeeded. However, when I run modify
other resources, I got a diff about the `google_project_iam_member`
resource.
2018-09-22 20:51:42 +09:00
Nathan McKinley
c39db1e171
Update CHANGELOG.md 2018-09-21 18:01:57 -07:00
The Magician
0790c96cac Implement Filestore Instance. (#2088) 2018-09-21 18:01:22 -07:00
Dana Hoffman
042a2f5754
Update CHANGELOG.md 2018-09-21 15:59:30 -07:00
Dana Hoffman
bec963fdfa
remove containeranalysis from ignore list (#2095) 2018-09-21 15:58:42 -07:00
Nathan McKinley
95211daafe
Update CHANGELOG.md 2018-09-21 13:28:44 -07:00
The Magician
06c2f8451f WIP: Add interconnect attachments. (#1569)
Fixes #1140.
2018-09-21 13:27:57 -07:00
Riley Karson
c6ceb36ec7
Introduce a new Google provider landing page, complementary pages. (#2065)
* Introduce a new Google provider landing page, complementary pages.

* Review fixes.

* Link community tutorials, modules.

* Review comments pt 2.

* Review comments 3. Prioritize and tone.

* Review comments 3.1. Then -> Next.

* Paddy review comments.

* Review comments.
2018-09-21 12:49:32 -07:00
The Magician
14bac81a71 Supporting IP range reservation for global address (#2087)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-09-21 09:43:45 -07:00
Nathan McKinley
bfb1feb4cb
Make it allowable to add 'network_interface' as workaround for element function (#2018)
Make it allowable to add 'network_interface', 'boot_disk', 'machine_type' as workaround for element function.
2018-09-20 16:49:48 -07:00
Paddy
b8cbf46367
Merge pull request #1764 from tpoindessous/patch-1
Be more specific about number of nodes in regional cluster
2018-09-20 14:28:58 -07:00
Paddy
53a8ac330a
Merge pull request #1919 from terraform-providers/paddy_image_docs
Add docs about image families and instance templates.
2018-09-20 14:25:10 -07:00
Paddy
4b41b11c27
Update CHANGELOG.md 2018-09-20 14:24:17 -07:00
Paddy
0b8c9644d7
Merge pull request #1944 from colenet-gmbh/master
Importing  google_dns_managed_zone with project
2018-09-20 14:23:36 -07:00
Paddy
940e5e45d3
Update CHANGELOG.md 2018-09-20 14:11:04 -07:00
Paddy
c2a462751b
Update CHANGELOG.md 2018-09-20 14:10:45 -07:00
Paddy
d9614d1664
Merge pull request #2054 from migibert/make_runtime_config_importable
Make runtime configs importable
2018-09-20 14:09:16 -07:00
The Magician
87204bf8aa Sort optional properties by name (#2091)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-09-20 13:22:36 -07:00