Commit Graph

2615 Commits

Author SHA1 Message Date
Paddy Carver
0435b1f387 Fix crash when updating container cluster resource labels.
We had a bad type coercion in the code to update container cluster
resource labels. This fixes the coercion.

We didn't notice this because there was no test exercising the update
code path. I've added the test, which reproduced the panic before this
PR was applied and passes successfully now that the coercion is fixed.
2018-07-13 02:27:40 -07:00
Nathan McKinley
687f8d0857 Sometimes we run tests on overloaded machines. (#1765) 2018-07-12 17:39:54 -07:00
The Magician
01a2906518 Fix nested object handling in generated code (#1757)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-12 17:15:40 -07:00
tf-release-bot
855bc8fc8d Cleanup after v1.16.0 release 2018-07-13 00:03:08 +00:00
tf-release-bot
c5d6b9e576
v1.16.0 2018-07-12 23:58:18 +00:00
Paddy
a099f55f55
Update CHANGELOG.md 2018-07-12 13:48:10 -07:00
Paddy
567244edaa
Merge pull request #1763 from terraform-providers/paddy_ignored_apis_update
Add stackdriverprovisioning to ignored APIs.
2018-07-12 13:46:55 -07:00
Paddy Carver
d80c92f33f Add stackdriverprovisioning to ignored APIs.
Add stackdriverprovisioning.googleapis.com to our list of APIs that are
automateically enabled that Terraform can't act on.
2018-07-12 13:40:30 -07:00
Paddy
9bdf755591
Update CHANGELOG.md 2018-07-12 13:18:03 -07:00
Paddy
6bef3e6063
Merge pull request #1762 from terraform-providers/revert-1742-fix-igm-rolling-updates
Revert "Fix instance group manager rolling-updates"
2018-07-12 13:17:36 -07:00
Paddy
e08832c48c
Revert "Fix instance group manager rolling-updates" 2018-07-12 13:09:57 -07:00
Dana Hoffman
afca363b65
Update CHANGELOG.md 2018-07-12 12:52:28 -07:00
The Magician
499690f3b3 Autogenerate router resource. Also adds update support and a few new fields. (#1723) 2018-07-12 12:51:11 -07:00
Paddy
39b17f0e3b
Merge pull request #1761 from terraform-providers/paddy_images_licenses_computed
Make licenses field of images computed.
2018-07-12 12:37:48 -07:00
Paddy Carver
a29a0cbbda Make licenses field of images computed.
Images now have a licenses field, which lets users specify licenses to
use on an image. But official images already have licenses on them, adn
so Terraform is reading those as a diff. To preserve backwards
compatiblity and avoid a breaking change that would require all
`google_compute_image` users to update their configs, I've set the field
to computed. This means that if no licenses are set in the config, there
can be licenses in the config without prompting a diff. Obviously, this
isn't ideal, as it means you can't ever remove all the licenses from an
image, but I think the benefits here outweigh the drawbacks.
2018-07-12 11:50:02 -07:00
Dana Hoffman
7b3ee2bc3e
Update CHANGELOG.md 2018-07-12 11:20:18 -07:00
Dana Hoffman
8b71cecad7
fix retries for wrapped errors (#1760)
Turns out this block of code:
 2ea2baaedd/google/resource_google_project_services.go (L246-L307)
wasn't actually retrying on quota failures (429s) because it was getting wrapped, so our retry helper saw it as as non-retryable. This fixes that.
2018-07-12 11:19:49 -07:00
emily
9d15f6162f
Vendor update to compute (#1756) 2018-07-12 10:47:18 -07:00
Paddy
4325cc6a95
Update CHANGELOG.md 2018-07-12 10:31:14 -07:00
Paddy
182c3e904e
Merge pull request #1737 from mchalek/mchalek-fix-services-pagetoken
Add nextPageToken to fields argument against ServiceUsage api
2018-07-12 10:30:32 -07:00
Paddy Carver
d6f2a285ef Rename test, add comment. 2018-07-12 10:26:48 -07:00
Paddy Carver
1c4f1a0bec Merge branch 'master' into mchalek-fix-services-pagetoken 2018-07-12 06:06:17 -07:00
Paddy Carver
c998a37a83 Update our test to page.
Add a bunch more services to our manyServices test, so that we have a
page that exercises pagination logic.
2018-07-12 06:04:09 -07:00
Paddy
2ea2baaedd
Update CHANGELOG.md 2018-07-11 21:16:13 -07:00
Paddy
3d2e72208e
Merge pull request #1717 from Mierdin/master
Implement 'licenses' field in compute_image resource
2018-07-11 21:15:35 -07:00
Paddy
5be332e699
Update CHANGELOG.md 2018-07-11 04:29:59 -07:00
Paddy
7663c6ff3a
Merge pull request #1742 from bpineau/fix-igm-rolling-updates
Fix instance group manager rolling-updates
2018-07-11 04:28:41 -07:00
Paddy
486be87b12
Merge pull request #1731 from nyurik/patch-1
Update compute_ssl_certificate.html.markdown
2018-07-11 04:22:08 -07:00
Paddy Carver
91790040d7 Merge branch 'mchalek-fix-services-pagetoken' of github.com:mchalek/terraform-provider-google into mchalek-fix-services-pagetoken 2018-07-11 03:51:45 -07:00
Dana Hoffman
a6198a0b60
prereqs for regional disks (#1753)
In testing an upcoming `google_compute_region_disk` resource, I had to make these changes. Checking them in separately so that when the magician runs, these changes will already be a part of TF.
2018-07-10 17:10:05 -07:00
The Magician
bbed86dd0b Magic Modules generated documentation cleanup. (#1746) 2018-07-10 15:42:50 -07:00
The Magician
b93a759b25 Switch compute/disk type to be a resource reference instead of string. (#1748) 2018-07-10 10:51:46 -07:00
Benjamin Pineau
633c2191ac Fix instance group manager rolling-updates
Currently, the rolling-update API expects a PUT (regionInstanceGroupManager.update())
instead of a PATCH (regionInstanceGroupManager.patch()) call, so immediate rolling updates
(as specified with `update_strategy = "ROLLING_UPDATE"``) are never triggered:

```
[DEBUG]: ---[ REQUEST ]---------------------------------------
[DEBUG]: POST /compute/beta/projects/mycompany-myapp-staging/regions/europe-west3/instanceGroupManagers/myapp-server/setInstanceTemplate?alt=json HTTP/1.1
....
[DEBUG]: ---[ RESPONSE ]--------------------------------------
...
[DEBUG]:  "warnings": [
[DEBUG]:   {
[DEBUG]:    "code": "FIELD_VALUE_OVERRIDEN",
[DEBUG]:    "message": "Update policy type was set to OPPORTUNISTIC. Please use regionInstanceGroupManager.update() to preserve the policy."
[DEBUG]:   }
```

refs:
https://cloud.google.com/compute/docs/reference/rest/beta/instanceGroupManagers/patch
https://cloud.google.com/compute/docs/reference/rest/beta/instanceGroupManagers/update

Fix #1506
2018-07-08 16:20:30 +02:00
Yuri Astrakhan
0df88d300e
fix random keepers 2018-07-06 22:48:21 -04:00
The Magician
b2140c98d0 Magic Modules changes. (#1738) 2018-07-06 14:53:00 -07:00
Kevin McHale
9c9eccc206 Add nextPageToken to fields argument against ServiceUsage api 2018-07-06 15:37:19 -04:00
Paddy
6b02e9ccd9
Merge pull request #1734 from terraform-providers/paddy_regional_backend_docs
Clarify regional backend service docs.
2018-07-06 06:30:04 -07:00
Paddy
c05d3e24c9
Merge pull request #1735 from terraform-providers/paddy_1356
Add warning to google_project_iam_binding.
2018-07-06 06:29:49 -07:00
Paddy
2d13fea7a9
Merge pull request #1687 from johnsw87/patch-1
Update to private clusters
2018-07-06 05:51:43 -07:00
Paddy
c1d2b5d96e
Update CHANGELOG.md 2018-07-06 05:17:58 -07:00
Paddy
0eb723ec32
Merge pull request #1665 from vishen/container_cluster_disk_type
container_cluster: added disk_type node configuration
2018-07-06 05:16:12 -07:00
Paddy
c9f047357c
Merge pull request #1732 from alexis-turpin/patch-1
Fix google_compute_route render error
2018-07-06 05:14:59 -07:00
Paddy
bde9b82d4f
Update CHANGELOG.md 2018-07-06 05:13:46 -07:00
Paddy
0c4a5dde50
Merge pull request #1733 from rtoma/master_auth_networks_20
Increase max number of master_authorized_networks to 20, per GKE docs.
2018-07-06 05:12:57 -07:00
Paddy Carver
9f1bfbb5e8 Add warning to google_project_iam_binding.
Call out that it's possible to lock yourself out using
`google_project_iam_binding`.
2018-07-06 04:40:50 -07:00
Paddy Carver
0a582a198b Clarify regional backend service docs.
Make it clear that regional backend services are only for internal load
balancing, and fix the default for protocol. It's not HTTP, as the API
docs claim, but is TCP instead.
2018-07-06 04:17:37 -07:00
Renzo Toma
90eabdec15 Increase max number of master_authorized_networks to 20, per GKE docs.
See https://cloud.google.com/kubernetes-engine/docs/how-to/authorized-networks#setting_up_an_authorized_network
2018-07-05 22:10:17 +02:00
Alexis Turpin
3d746c7e8d
Fix render error 2018-07-05 17:50:04 +02:00
Yuri Astrakhan
ef10e32120
Update compute_ssl_certificate.html.markdown
It was very confusing for `name_prefix` to be deprecated and undeprecated later.
Adding an example of using random_id in addition to name_prefix
2018-07-04 16:43:23 -04:00
Paddy
064ec03ffa
Update CHANGELOG.md 2018-07-02 11:51:28 -07:00