Commit Graph

39 Commits

Author SHA1 Message Date
The Magician
a815f97513 [terraform-beta] docs for container_cluster and container_node_pool resources (#3330)
<!-- This change is generated by MagicModules. -->
/cc @rrondeau
2019-03-27 14:54:30 -07:00
The Magician
d1549bf0c9 Sort import regex's (#3283)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-03-20 15:21:38 -07:00
Mike Brooks
71b62c7598 Update OAuth Scopes (#3205)
Update the OAuth scopes to remove the insecure default and match googles latest recommendations https://cloud.google.com/kubernetes-engine/docs/how-to/access-scopes
2019-03-20 11:28:19 -07:00
The Magician
5efcfae478 Handle GKE 1.12 node_config.metadata default value (#3233)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-03-13 11:02:55 -07:00
The Magician
20391bd842 Add location / node_locations fields to GKE (#3114)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-03-13 09:32:46 -07:00
Stuart Sandine
dc80787c18 Docs update: container_node_pool allows min_node_count of zero (#3001)
I was pleasantly surprised to find that it works ok to set `min_node_count` to zero. But the docs say it must be at least one, so this PR proposes a tweak to update that.

More context, from https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler:

> Beginning with Kubernetes version 1.7, you can specify a minimum size of zero for your node pool. This allows your node pool to scale down completely if the instances within aren't required to run your workloads. However, while a node pool can scale to a zero size, the overall cluster size does not scale down to zero nodes (as at least one node is always required to run system Pods).
2019-03-07 08:59:09 -08:00
The Magician
9dc1a66171 Allow fuzzy matching GKE versions in the GKE version datasource (#3199)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-03-06 15:12:33 -08:00
The Magician
9c8bea96d8 Refresh provider docs in anticipation of 2.0.0 (#2981)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-02-01 13:26:59 -08:00
The Magician
af7cf2a69b Make zone required in google_composer_environment.node_config (#2967)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-02-01 11:20:05 -08:00
The Magician
bb5e34894f Update GKE examples, docs to recommend fine grained node pools. (#2968)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-01-31 13:37:33 -08:00
The Magician
742c060dcc Add timeouts to container node pool docs, add timeouts to examples. (#2969)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-01-31 12:52:08 -08:00
The Magician
94b98834da use shorter beta link in docs instead of long description (#2475) 2018-12-20 17:22:22 -08:00
Dave Koston
3de6e2848d Fix regional cluster example (#2385)
Update regional cluster example to point cluster to google_container_cluster.regional.name rather than google_container_cluster.primary.name
2018-12-20 17:22:22 -08:00
The Magician
d292de6f0c Remove files that aren't managed by magic-modules or explicitly excluded. (#2368) 2018-12-20 17:22:22 -08:00
Riley Karson
c452e212eb Revert "Fix regional cluster example (#2385)"
This reverts commit 065128eed0.
2018-11-13 07:50:37 -08:00
Dave Koston
065128eed0 Fix regional cluster example (#2385)
Update regional cluster example to point cluster to google_container_cluster.regional.name rather than google_container_cluster.primary.name
2018-11-12 15:24:24 -08:00
Riley Karson
fb8721083f Fix handwritten provider_versions links 2018-10-09 08:21:50 -07:00
Riley Karson
742b6933a1
Add notes to docs about deprecated beta fields. (#2171)
* Add notes to docs about deprecated beta fields.

* Remove comma
2018-10-04 13:20:35 -07:00
Nathan McKinley
81f8befbb5
Add support for max pods per node to node pool. (#2038) 2018-09-12 17:49:26 -07:00
Daisuke Fujita
b7f2025fb9 Add project to container_node_pool import name (#1653)
## What

As well as https://github.com/terraform-providers/terraform-provider-google/pull/1282 , make `resource_container_node_pool` importer accept `{project}/{zone}/{cluster}/{name}` format to specify the project where the node pool belongs to actually.

## Why

Sometimes I want to import container pool in different project from default SA's. However, currently there is no way to specify project the target node pool belongs to, Terraform tries to retrieve node pool from SA's project, then it fails due to `You cannot import non-existent resources using Terraform import.` error.
2018-06-14 09:54:08 -07:00
Darren Haken
2b1b668953 #1300 Supporting regional clusters for node pools (#1320)
This PR also switched us to using the beta API in all cases, and that had a side effect which is worth noting, note included here for posterity.

=====
The problem is, we add a GPU, and as per the docs, GKE adds a taint to
the node pool saying "don't schedule here unless you tolerate GPUs",
which is pretty sensible.

Terraform doesn't know about that, because it didn't ask for the taint
to be added. So after apply, on refresh, it sees the state of the world
(1 taint) and the state of the config (0 taints) and wants to set the
world equal to the config. This introduces a diff, which makes the test
fail - tests fail if there's a diff after they run.

Taints are a beta feature, though. :) And since the config doesn't
contain any taints, terraform didn't see any beta features in that node
pool ... so it used to send the request to the v1 API. And since the v1
API didn't return anything about taints (since they're a beta feature),
terraform happily checked the state of the world (0 taints I know about)
vs the config (0 taints), and all was well.

This PR makes every node pool refresh request hit the beta API. So now
terraform finds out about the taints (which were always there) and the
test fails (which it always should have done).

The solution is probably to write a little bit of code which suppresses
the report of the diff of any taint with value 'nvidia.com/gpu', but
only if GPUs are enabled. I think that's something that can be done.
2018-04-24 17:55:21 -07:00
Dana Hoffman
7596164ad1
Deprecate name_prefix (#1035)
* deprecate name_prefix

* make name_prefix computed and add migration instructions
2018-04-02 10:28:59 -07:00
Dana Hoffman
33d87a2bc1
add support for node pool versions (#1266) 2018-03-29 13:27:11 -07:00
Dana Hoffman
fd0819786b
revive initial_node_count (#1176) 2018-03-13 11:45:01 -07:00
Alexandru Topliceanu
7e64b3f1c1 make it clear that the attribute represents the project id (#672) 2018-03-12 13:59:47 -07:00
Bob
f3691675a4 [docs] - Improve docs for google_container_{node_pool,cluster} (#1155)
* [docs] - Improve docs for google_container_{node_pool,cluster}

* node pool examples formatting
2018-03-08 09:08:14 -08:00
Darren Hague
5b0d8d43ff Allow specifying accelerators in cluster node_config (#1115) 2018-02-23 16:55:07 -08:00
Nathan McKinley
b68dc6e984
Docs change - Specify that cluster is a zonal resource. (#984) 2018-01-19 10:45:19 -08:00
David Quarles
34297fe478 Add support for google_container_node_pool management (#669)
* add support for `google_container_node_pool` management (sans-tests)

* [review] add tests, docs, general cleanup

* add docs

* [review] amend test to check updates and terraform fmt

* test updates, make nested management fields non-computed
2017-11-21 12:56:29 -08: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
David Quarles
1a8f3b8d18 Add support for CPU Platform in google_container_node_pool (#622)
* update container/v1 API

* add support for CPU Platform in `google_container_node_pool`

* fix broken links
2017-10-25 14:08:48 -07:00
kev1nlaube
fa661697e1 Add missing parameters to the node pool docs (#551) 2017-10-09 10:42:35 -07:00
Bryce Kahle
7e4c17d8a5 Fix formatting of container_node_pool.min_node_count (#499) 2017-10-03 10:46:33 -07:00
Matt Morrison
31d4113875 Fix docs. Node Pool autoscaling attribute names (#382) 2017-09-06 13:57:00 -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
Anders Bruun Olsen
f06970c97a Make google_container_node_pool resources importable. (#284) 2017-08-07 10:35:39 -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
42a898dbd0 Add support for node pool autoscaling (#157)
* add node pool autoscaling

* docs for node pool autoscaling

* remove enabled attribute

* remove enabled from docs
2017-07-26 13:21:51 -07:00
Jake Champlin
b105f39423
Transfer google provider website 2017-06-09 10:58:02 -04:00