Skip to content

Commit 848a942

Browse files
committed
add tests
Signed-off-by: drfaust92 <[email protected]>
1 parent c000ef0 commit 848a942

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/node_pool/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This example illustrates how to create a cluster with multiple custom node-pool
77

88
| Name | Description | Type | Default | Required |
99
|------|-------------|------|---------|:--------:|
10+
| additional\_ip\_pod\_range | The secondary ip range to use for pods in the additional range | `any` | n/a | yes |
1011
| cluster\_autoscaling | Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling) | <pre>object({<br> enabled = bool<br> autoscaling_profile = string<br> min_cpu_cores = number<br> max_cpu_cores = number<br> min_memory_gb = number<br> max_memory_gb = number<br> gpu_resources = list(object({<br> resource_type = string<br> minimum = number<br> maximum = number<br> }))<br> auto_repair = bool<br> auto_upgrade = bool<br> })</pre> | <pre>{<br> "auto_repair": true,<br> "auto_upgrade": true,<br> "autoscaling_profile": "BALANCED",<br> "enabled": false,<br> "gpu_resources": [],<br> "max_cpu_cores": 0,<br> "max_memory_gb": 0,<br> "min_cpu_cores": 0,<br> "min_memory_gb": 0<br>}</pre> | no |
1112
| cluster\_name\_suffix | A suffix to append to the default cluster name | `string` | `""` | no |
1213
| compute\_engine\_service\_account | Service account to associate to the nodes in the cluster | `any` | n/a | yes |
@@ -22,6 +23,7 @@ This example illustrates how to create a cluster with multiple custom node-pool
2223

2324
| Name | Description |
2425
|------|-------------|
26+
| additional\_ip\_range\_pods | The secondary IP range used for pods in the additional range |
2527
| ca\_certificate | n/a |
2628
| client\_token | n/a |
2729
| cluster\_name | Cluster name |

test/fixtures/node_pool/example.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module "example" {
2929
subnetwork = google_compute_subnetwork.main.name
3030
ip_range_pods = google_compute_subnetwork.main.secondary_ip_range[0].range_name
3131
ip_range_services = google_compute_subnetwork.main.secondary_ip_range[1].range_name
32+
additional_ip_pod_range = google_compute_subnetwork.main.secondary_ip_range[2].range_name
3233
compute_engine_service_account = local.compute_engine_service_account
3334

3435
cluster_autoscaling = {

0 commit comments

Comments
 (0)