Commit Graph

875 Commits

Author SHA1 Message Date
Chris Stephens
a0e0afc537
Merge pull request #1848 from chrisst/link-helper-comments
Clarifying helper method usage
2018-08-13 11:22:17 -07:00
The Magician
41d92fda3e Remove request helper methods. (#1856)
Since we added custom verbs for a lot of resources, we should just use sendRequest directly.
2018-08-08 15:29:10 -07:00
Nathan McKinley
d01c0cd60e
Fixes related to autogenerating the VPN Tunnel resource (#1850) 2018-08-07 17:55:45 -07:00
Dana Hoffman
00e5bd5363
allow updating node image types (#1843)
Fixes #1702.

@chrisst I'm putting you as a reviewer, but no rush. Feel free to ask as many questions as you have! Also feel free to offer suggestions 😃 (or just say it's perfect as-is, that works too)
2018-08-07 14:07:28 -07:00
Chris Stephens
d94100dee4 Clarifying helper method usage
Changing comments and method signature
2018-08-07 11:32:35 -07:00
Dana Hoffman
c5388d27c4
add hash function for self link name (#1836) 2018-08-03 16:23:21 -07:00
The Magician
a6e1ecad7a Make redis alternativeLocationId computed (#1754) 2018-07-26 17:35:18 -07:00
Dan Isla
bb6c757ad1 Container cluster delete timeout to 30 min. (#1745)
Matches Create operation timeout. Should reduce timeouts when deleting regional clusters.
2018-07-26 10:22:39 -07:00
Nathan McKinley
aaf18dacca
CloudBuild Trigger substitutions (#1810) 2018-07-25 13:38:35 -07:00
The Magician
0fdc262183 Add LabelFingerprint and Label to Address and GlobalAddress. (#1811) 2018-07-25 13:25:16 -07:00
oceyral
7da529f3c1 Implement multiple versions for regional instance groups (#1809) 2018-07-25 13:21:20 -07:00
Dana Hoffman
b8cf81e527
use customizediff to allow all role-entity pairs to be unordered (#1787) 2018-07-24 15:36:30 -07:00
Dana Hoffman
b4bb79f58e
lock on master name when creating replicas (#1798) 2018-07-24 15:32:18 -07:00
Dana Hoffman
080f6fe2e1
don't call full read when updating billing acct (#1795) 2018-07-19 13:32:29 -07:00
The Magician
cacdaec642 handle nil resourceref links in generated code (#1794)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-19 12:26:40 -07:00
Dana Hoffman
7c47e13aa6
Changes to things that got merged too early (#1790) 2018-07-18 15:47:23 -07:00
Luke Hoban
cf4e731236 Add support for updating function code in place (#1781)
Remove ForceNew from the source inputs on function resources, and add support for updating the function in place from a new source bucket+object.
2018-07-18 14:48:00 -07:00
The Magician
c0610c5544 Add google_compute_region_disk resource. (#1755)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-18 14:24:21 -07:00
The Magician
0e29432a32 use compareSelfLinkOrResourceName diffsuppress on redis authorizednetwork. Fixes #1750. (#1782)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-18 13:34:47 -07:00
The Magician
aa20a0efe7 Support unordered list on subnetwork secondary IP range. (#1772) 2018-07-17 15:18:18 -07:00
Paddy
1fea758265
Merge pull request #1779 from danawillow/is-1775
allow setting instance scheduling booleans to false
2018-07-17 00:07:14 -07:00
Dana Hoffman
335ccae604 force send a bunch more fields in firewall 2018-07-16 18:46:05 -07:00
The Magician
1f9de6ad13 use patch instead of put to update router. Fixes #1778. (#1780)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-16 14:56:03 -07:00
Dana Hoffman
547245bada allow setting instance scheduling booleans to false 2018-07-16 13:54:47 -07:00
Paddy
8753eb0268
Merge pull request #1769 from terraform-providers/paddy_1767
Fix crash when updating container cluster resource labels.
2018-07-13 14:21:05 -07:00
Paddy Carver
c404cd740b Use map helper. 2018-07-13 14:14:00 -07:00
The Magician
ba2ea638ee Turn off logs on compiler unless you use --debug flag (#1771) 2018-07-13 11:13:29 -07:00
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
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
e08832c48c
Revert "Fix instance group manager rolling-updates" 2018-07-12 13:09:57 -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 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
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
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
3d2e72208e
Merge pull request #1717 from Mierdin/master
Implement 'licenses' field in compute_image resource
2018-07-11 21:15:35 -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
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
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
Kevin McHale
9c9eccc206 Add nextPageToken to fields argument against ServiceUsage api 2018-07-06 15:37:19 -04: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
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
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
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
The Magician
74c64030b8 add quic_override to google_compute_target_https_proxy (#1718) 2018-06-29 15:24:27 -07:00