Commit Graph

2644 Commits

Author SHA1 Message Date
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
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
Paddy
38790dab3f
Merge pull request #1915 from terraform-providers/paddy_fix_disk_timeout
Fix failing disk test.
2018-08-22 11:52:11 -07:00
Paddy
cd32fdfad4
Merge pull request #1917 from terraform-providers/paddy_debian_resolve_image
Fix the last of the debian-8 updates.
2018-08-22 11:51:49 -07:00
tf-release-bot
58f58e0453 Cleanup after v1.17.0 release 2018-08-22 17:53:37 +00:00
tf-release-bot
20945cd0dc
v1.17.0 2018-08-22 17:48:14 +00:00
Paddy
e4a386848c
Update CHANGELOG.md 2018-08-22 10:34:54 -07:00
Riley Karson
fbad37ebff
Fix storage notification tests (#1913)
* Update google_storage_project_service_account to mirror API.

* Fix storage notifications test, clarify docs.
2018-08-22 08:19:52 -07:00
Paddy Carver
787bccdb0e Fix the last of the debian-8 updates. 2018-08-21 19:40:03 -07:00
Paddy Carver
b94881b423 Always set instance template source images on read.
Previously, we were only setting source images for the disks in instance
templates if they weren't set in the config. Instead, let's just always
set them. This fixes our test failures about self_links not matching
names. Also, relative links are safer than just image names, as
Terraform wouldn't notice if another project's image of the same name
got used instead of your project's.

Also fix the setting of tags and tag fingerprints to always set, even if
to the empty value, to fix the tests.
2018-08-21 18:32:25 -07:00
Paddy Carver
451391bdd7 Fix failing disk test.
Change Create to create in timeouts to fix failing test.
2018-08-21 17:55:38 -07:00
Dana Hoffman
35ab6d1671
Update CHANGELOG.md 2018-08-21 14:13:49 -07:00
The Magician
875f1f874e Generate resource_compute_firewall in magic-modules. I also decided to use PATCH instead of PUT for updates, because a lot of the fields we had marked as ForceNew can be updated with PATCH. (#1907)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-21 14:12:46 -07:00
Nathan McKinley
41e088dcef
Update compute_instance.html.markdown (#1912) 2018-08-21 13:47:52 -07:00
Paddy
1bcddf995a
Merge pull request #1879 from terraform-providers/paddy_image_fix
Switch from debian-8 to debian-9
2018-08-21 13:40:31 -07:00
Paddy Carver
be76ffaa78 Fix whitespace, really.
Tabs v spaces strikes again.
2018-08-21 13:36:04 -07:00
Riley Karson
3f0088515a Add a detailed error message to google_project Create when lacking permissions. (#1910) 2018-08-21 12:42:03 -07:00
Chris Stephens
c088a129b8
Merge pull request #1868 from chrisst/cloud-armor-example
Adding a Cloud Armor example
2018-08-21 11:07:48 -07:00
Chris Stephens
3d75b751aa Updating from code review 2018-08-21 11:07:14 -07:00
Craig Furman
93d0caa9ad Document a default in google_storage_bucket (#1905)
The default of the log_object_prefix is the name of the bucket we are
enabling logging on, not the name of the bucket that receives the logs.
2018-08-20 22:00:36 -07:00
David Asabina
bf7626a5c6 Fix panic on empty list for authorized masters' cidr_blocks (#1904)
* test empty authorized masters' cidr_blocks

When the `cidr_block` isn't simply blank but contains an empty list as in

```
master_authorized_networks_config {
  cidr_blocks = []
}
```

a panic occurs looking something like

```
goroutine 26 [running]:
github.com/terraform-providers/terraform-provider-google/google.expandMasterAuthorizedNetworksConfig(0x15a4f80, 0xc4202586e0, 0x21)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/google/resource_container_cluster.go:1355 +0x4f2
github.com/terraform-providers/terraform-provider-google/google.resourceContainerClusterCreate(0xc420146a80, 0x16b1800, 0xc4200b8000, 0x0, 0x0)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/google/resource_container_cluster.go:520 +0x2848
github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc420495490, 0xc420341310, 0xc4202582c0, 0x16b1800, 0xc4200b8000, 0x1, 0xc42024eae0, 0xc4201e3650)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:227 +0x364
github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc4204c6700, 0xc4203412c0, 0xc420341310, 0xc4202582c0, 0x14ee1441a000, 0x0, 0x18)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0xa4
github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc4202d7c40, 0xc42035de80, 0xc42025c160, 0x0, 0x0)
	/tmp/GOPATH/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
reflect.Value.call(0xc4203feae0, 0xc42000e038, 0x13, 0x19e88a8, 0x4, 0xc42015ff20, 0x3, 0x3, 0xc420047ee8, 0xc4204c6798, ...)
	/usr/local/go/src/reflect/value.go:434 +0x905
reflect.Value.Call(0xc4203feae0, 0xc42000e038, 0x13, 0xc420047f20, 0x3, 0x3, 0xc400000001, 0x0, 0x0)
	/usr/local/go/src/reflect/value.go:302 +0xa4
net/rpc.(*service).call(0xc420418600, 0xc42007c140, 0xc42001e798, 0xc4200c4000, 0xc4202d6c40, 0x1557f80, 0xc42035de80, 0x16, 0x1557fc0, 0xc42025c160, ...)
	/usr/local/go/src/net/rpc/server.go:381 +0x142
created by net/rpc.(*Server).ServeCodec
	/usr/local/go/src/net/rpc/server.go:475 +0x36b
```

which we trigger by altering the first step to contain the HCL notation
for an empty list instead of simply an empty string.

In order to accomplish this, the tests had to be modified to accept an
emptyValue string as well which contains the content of the
`emptyValue` string when the cidrBlocks array is empty. This maintains
the old behavior of the original tests when `emptyValue` is an empty
string, while also facilating differing behavior for the new testcase by
setting `emptyValue` to whichever string we want to test instead. I
don't think this is very clean, but I guess it's pragmatic enough.

I'll hear if this is a thorn in the side to someone 😏.

* avoid panic on cidr_block type assertion

This is basically the fix. Since the value can be nil, we want to ensure
we handle a failure during the assertion since we know that asserting
`nil` conforms to `map[string]interface{}` will cause a run-time panic.

* flatten to config on empty list for cidr_blocks

since an empty list for cidrBlocks constitutes valid input, one should
return a map containing an empty list for the cidr_blocks field instead
of a nil value.

The nil value is only appropriate when the input Config is also nil.
2018-08-20 19:29:37 -07:00
Dana Hoffman
b05998781d
Update CHANGELOG.md 2018-08-20 16:47:04 -07:00
The Magician
3ff7ccca7c Add Policy, Attestor, and Note resources for Binary Authorization (#1885)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-20 16:46:13 -07:00
The Magician
fb66cd88c5 Fix documentation for resource manager lien. (#1901) 2018-08-17 16:33:38 -07:00
Nathan McKinley
ea4a6438d8
Handle service account key 403 on nonexistent resource requested (#1900)
* 403 on delete / read should count as deleted for this product.
2018-08-17 16:00:13 -07:00
aidy
5bca1b3f03 Fix length of day in documentation (#1881) 2018-08-17 14:47:47 -07:00
Nathan McKinley
d77c0adbb2
Add support for bucket encryption (#1876)
* Support encryption in Storage bucket.
* Add self links to crypto keys and key ring ids
* Update ID documentation to talk about self link instead.
2018-08-17 14:33:27 -07:00
Dana Hoffman
503e029f4f
Update CHANGELOG.md 2018-08-16 17:51:39 -07:00
Dana Hoffman
d1bf585724
Add support for binary authorization in GKE (#1884)
* revendor container/v1beta1

* add support for binauthz in gke

* update description
2018-08-16 17:51:03 -07:00
Nathan McKinley
92afc9c938
Update CHANGELOG.md 2018-08-16 13:58:32 -07:00
Nathan McKinley
f9f95e444d
Correctly update regional resource. (#1887) 2018-08-16 13:57:41 -07:00