Commit Graph

2553 Commits

Author SHA1 Message Date
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
Paddy
cf72a65aa5
Merge pull request #1663 from garethjevans/resourcelabels
Added ability to configure resource labels on a GKE cluster
2018-07-02 11:50:25 -07:00
Dana Hoffman
0b4321a9cb
Update CHANGELOG.md 2018-07-02 10:17:07 -07:00
The Magician
ded4eb8c64 Support Redis configuration (#1706)
<!-- This change is generated by MagicModules. -->
/cc @edevil 

Fixes #1547
2018-07-02 10:16:38 -07:00
The Magician
18e0d423d6 Autogenerate VPN Tunnel resource (#1699) 2018-06-29 16:27:01 -07:00
Dana Hoffman
d786d633af
Update CHANGELOG.md 2018-06-29 15:24:47 -07:00
The Magician
74c64030b8 add quic_override to google_compute_target_https_proxy (#1718) 2018-06-29 15:24:27 -07:00
The Magician
8e6552bd90 Update redis example to actually use network (#1720)
Update redis example to actually use network
2018-06-29 09:28:05 -07:00
Matt Oswalt
d7c1bf93a0
Update tests for image licenses
Signed-off-by: Matt Oswalt <matt@keepingitclassless.net>
2018-06-29 06:45:02 -07:00
Dana Hoffman
32826ad533
Update CHANGELOG.md 2018-06-28 16:10:49 -07:00
Dana Hoffman
5742850ae2
Update CHANGELOG.md 2018-06-28 16:10:28 -07:00
Dana Hoffman
7e04cee958
add new compute_instance_from_template resource (#1652)
This was done as its own resource as suggested in slack, since we don't have the option of making all fields Computed in google_compute_instance. There's precedent in the aws provider for this sort of thing (see ami_copy, ami_from_instance).

When I started working on this I assumed I could do it in the compute_instance resource and so I went ahead and reordered the schema to make it easier to work with in the future. Now it's not quite relevant, but I left it in as its own commit that can be looked at separately from the other changes.

Fixes #1582.
2018-06-28 16:09:23 -07:00
Matt Oswalt
8941c5ef6e
Implement 'licenses' field in compute_image resource
Signed-off-by: Matt Oswalt <matt@keepingitclassless.net>
2018-06-28 09:51:50 -07:00