Vincent Roseberry
6ba6dfa6d2
Ensures operation on a cluster are applied serially ( #937 )
2018-01-09 12:39:04 -05:00
Dana Hoffman
585c734503
Set default scopes when creating GKE clusters/node pools ( #924 )
...
* set scopes by default
* clarify list -> list/set
2018-01-08 15:54:45 -08:00
Vincent Roseberry
dab491d28d
Make zone field consistent and truly optional for all resources ( #914 )
2018-01-03 16:18:40 -05:00
Michael Bannister
18534c9e7d
Don't recreate container_cluster when maintenance_window changes ( #893 )
...
* Don't recreate container_cluster when maintenance_window changes
Fixes #727
* Omit ForceNew when false
Review comments for PR #893
* Move MaintenancePolicy mapping logic into expand/flatten functions
Review comments for PR #893
* Improve acceptance test for maintenance window update/removal
Review comments for PR #893
2017-12-27 12:29:14 -08:00
Nathan McKinley
114b646fae
Enable 'zone' to be specified at the provider level instead of per-resource. ( #816 )
...
- Fetch Zone attribute any place where it *was* being fetched from the schema by
combination schema / provider-level attribute.
- Allow region to be unspecified if zone is specified.
- Switch one example to using provider-level zone as an example.
- Make provider-level zone optional. (Individual resources will fail if they can't find a zone.)
- Add tests for getZone and getRegion.
2017-12-06 14:30:04 -08:00
Vincent Roseberry
8f701c6ebb
Remove getNetworkName method and use ParseNetworkFieldValue instead ( #802 )
2017-11-29 10:54:10 -08:00
Vincent Roseberry
6c5d6b72e0
Store project and region in state ( #784 )
...
* Store project and region in state
* Delete unused project in runtimeconfig_variable
2017-11-27 16:32:20 -08:00
David Quarles
d57db91143
add support for ip aliasing in google_container_cluster
( #654 )
...
* add support for ip aliasing in `google_container_cluster`
* [review] cleanup galore, infer feature enablement from `ip_allocation_policy`
* [review] cleanup, round 2
* add nil check back (when reading ip allocation policy from API)
2017-11-27 18:15:03 -05:00
Sébastien GLON
39f22ef924
[WIP] Add container cluster network policy addon ( #630 )
...
* replalce TypeList by TypeSet
* Add network policy
* test improvement
* correct test
* Add cluster network polocy enabled
* Replalce network_policy addons by global network_policy enabled
* Update node_config.go
* Update resource_container_cluster.go
* clean
* clean
* Correct PR
* COrrect PR
* pr
* fix test to use same name
* add more documentation
2017-11-27 15:40:07 -05:00
Vincent Roseberry
0c0caee7ba
Standardize on test env var for region, creds and project ( #770 )
2017-11-21 09:34:32 -08:00
Michael Bannister
ee641e0b1f
Relax diff on maintenance_policy.daily_maintenance_window.start_time ( #726 )
...
* Relax diff on maintenance_policy.daily_maintenance_window.start_time
If the maintenance window has been set outside of Terraform to a time with a
single-digit hour (such as 1:00), and the terraform definition is set to the
same hour but with a leading zero as per validation (i.e. 01:00), do not
consider the time to be changed (as we currently don't support update on this
property).
Fixes #719
* Generalise rfc3339TimeDiffSuppress and add more test cases
2017-11-13 11:30:26 -08:00
Michael Bannister
12060f9f3d
Add support for maintenance window on google_container_cluster ( #670 )
...
* Add support for maintenance window on google_container_cluster (#526 )
* Address review comments
- Set ForceNew: true on the schema element daily_maintenance_window
- Correct resource name in acceptance test
- Correct documentation of resource attribute maintenance_policy.0.daily_maintenance_window.0.duration
2017-11-07 15:42:11 -08:00
David Quarles
ca7551c8c5
Add support for master authorized networks in google_container_cluster
( #626 )
...
* Add support for master authorized networks in `google_container_cluster`
* [review] remove enabled flag / restructure schema
- remove `google_container_cluster.master_authorized_networks_config.enabled`
- add `display_name` and restructure schema as follows:
master_authorized_networks_config {
cidr_blocks {
cidr_block = "0.0.0.0/0"
display_name = "foo"
}
}
- amend tests
* [review] add test for validateRFC1918Network, fix acc test
2017-11-02 10:38:20 -07:00
Henry Bell
026d76616d
Add support for Kubernetes alpha features ( #646 )
...
* Add support for Kubernetes alpha features
* Add tests for support of Kubernetes alpha features
* Fix dodgy copy and paste operations
* Add documentation
2017-10-31 16:38:18 -07:00
Dana Hoffman
adbb5dd4fb
Update GKE docs to match actual schema; reorder fields in schema ( #637 )
...
* reorder schemas and update docs
* initial_node_count is optional
* clarify when initial_node_count must be set
2017-10-27 15:18:34 -07:00
Dana Hoffman
7c2bf7f4a7
make addons_config updatable ( #597 )
2017-10-20 09:47:07 -07:00
Dana Hoffman
62eb5ceedf
Allow updating google_container_cluster.monitoring_service
( #598 )
2017-10-20 09:46:21 -07:00
Dana Hoffman
811530f145
Fix cluster version upgrades ( #577 )
...
* wait for running status on a cluster on read
* add min_master_version field
* respond to comments
* add docs
* no node_version on create
2017-10-12 11:21:33 -07:00
Dana Hoffman
d67bf7b3fc
add master_version to container cluster ( #538 )
2017-10-06 15:48:01 -07:00
Dana Hoffman
bb0ab8e1f6
Merge the schemas and logic for the node pool resource and the node pool field in the cluster to aid in maintainability ( #489 )
2017-10-03 17:09:34 -07:00
Joe Selman
475ddb1b5b
Add kubernetes dashboard addon ( #464 )
...
* Update google.golang.org/api/container/v1
* Add support for kubernetes_dashboard addon
* Fix tab/spaces issue in string
2017-10-03 09:29:27 -07:00
Dana Hoffman
5f86f52d1f
Add DiffSuppressFunc to GKE cluster networks ( #419 )
...
* fix gke network test
* use a state func to store the resource name
2017-09-14 09:36:29 -07:00
Anders Bruun Olsen
67b7b2dd72
Container cluster importable ( #391 )
2017-09-07 10:31:58 -07:00
Joe Selman
0605638885
Add preemptible as an option to node config ( #341 )
...
* Add preemptible as an option to node config
* Check for preemptible in test matching functions
* Move flattenClusterNodeConfig to node_config
* Handle bools properly when comparing in cluster and node pool tests
* Use a supported image_type in cluster tests
2017-09-01 13:02:26 -07:00
Dana Hoffman
07cf281372
allow updating google_container_cluster.logging_service ( #343 )
2017-08-18 15:29:51 -07:00
Dana Hoffman
4cbc859de3
Add support for resizing a node pool defined in google_container_cluster ( #331 )
...
* Add support for resizing a node pool defined in google_container_cluster
* add initial node count back but make it deprecated
2017-08-17 17:51:58 -07:00
Roberto Jung Drebes
5602218586
allow configuring node_config of node_pools specified in container_cluster ( #299 )
2017-08-11 12:23:17 -07:00
Dana Hoffman
e9e9f835ec
Allow upgrading GKE versions and provide better error message handling ( #291 )
...
* Better error handling for GKE operations
* Handle GKE version upgrades
* clarify log message
2017-08-08 11:31:12 -07:00
Vincent Roseberry
018e01887b
Fail if both name and name_prefix are set for node_pool in google_container_cluster ( #296 )
2017-08-04 15:34:02 -07:00
Dana Hoffman
32d7c3f62c
Add support for legacyAbac to google_container_cluster
( #261 )
...
* revendor container api
* Add support for legacyAbac to `google_container_cluster`
* change to single enabled field
2017-07-31 11:09:05 -07:00
Aleksandr Didenko
1ec19cf3d9
Add support node config for GKE node pool ( #184 )
...
* Add support node config for GKE node pool
* Review fixes:
- Set max items in node config schema
- Fill missing node config fields
- Put test helpers above than test vars
* Update checks in node pool tests
* Fix node pool check match
2017-07-31 09:28:39 -07:00
Dana Hoffman
ae5ea9fd0f
allow updating additional_zones, turn it into a set ( #152 )
2017-07-05 16:00:49 -07:00
stack72
8798346e70
Add an acceptance test to show timeouts in container_cluster
2017-06-28 11:34:20 +03:00
sovanesyan
b2f789ca0a
provider/google: Add Timeout support to google_container_cluster
...
Migrated from https://github.com/hashicorp/terraform/pull/13203
2017-06-28 11:24:28 +03:00
Reinhard Nägele
eb3e108c4b
Add support for labels and tags on GKE node_config
2017-06-12 16:29:30 +02:00
Jake Champlin
66029ac431
Transfer google provider
2017-06-06 11:58:51 -04:00