Skip to content

Commit a598929

Browse files
committed
+squash, commit changes from 40d77b7 via make generate
1 parent c869b35 commit a598929

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Then perform the following commands on the root folder:
9797

9898
| Name | Description | Type | Default | Required |
9999
|------|-------------|:----:|:-----:|:-----:|
100+
| cluster_resource_labels | Map containing cluster labels. Maximum of 64 labels | map | `<map>` | no |
100101
| description | The description of the cluster | string | `` | no |
101102
| horizontal_pod_autoscaling | Enable horizontal pod autoscaling addon | string | `true` | no |
102103
| http_load_balancing | Enable httpload balancer addon | string | `true` | no |

cluster_regional.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ resource "google_container_cluster" "primary" {
2525
name = "${var.name}"
2626
description = "${var.description}"
2727
project = "${var.project_id}"
28+
resource_labels = "${var.cluster_resource_labels}"
2829

2930
region = "${var.region}"
3031
additional_zones = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"]

cluster_zonal.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ resource "google_container_cluster" "zonal_primary" {
2525
name = "${var.name}"
2626
description = "${var.description}"
2727
project = "${var.project_id}"
28+
resource_labels = "${var.cluster_resource_labels}"
2829

2930
zone = "${var.zones[0]}"
3031
additional_zones = ["${slice(var.zones,1,length(var.zones))}"]

modules/private-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Then perform the following commands on the root folder:
100100

101101
| Name | Description | Type | Default | Required |
102102
|------|-------------|:----:|:-----:|:-----:|
103+
| cluster_resource_labels | Map containing cluster labels. Maximum of 64 labels | map | `<map>` | no |
103104
| description | The description of the cluster | string | `` | no |
104105
| enable_private_endpoint | (Beta) Whether the master's internal IP address is used as the cluster endpoint | string | `false` | no |
105106
| enable_private_nodes | (Beta) Whether nodes have internal IP addresses only | string | `false` | no |

modules/private-cluster/cluster_regional.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ resource "google_container_cluster" "primary" {
2525
name = "${var.name}"
2626
description = "${var.description}"
2727
project = "${var.project_id}"
28+
resource_labels = "${var.cluster_resource_labels}"
2829

2930
region = "${var.region}"
3031
additional_zones = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"]

modules/private-cluster/cluster_zonal.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ resource "google_container_cluster" "zonal_primary" {
2525
name = "${var.name}"
2626
description = "${var.description}"
2727
project = "${var.project_id}"
28+
resource_labels = "${var.cluster_resource_labels}"
2829

2930
zone = "${var.zones[0]}"
3031
additional_zones = ["${slice(var.zones,1,length(var.zones))}"]

modules/private-cluster/variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ variable "description" {
2929
default = ""
3030
}
3131

32+
variable "cluster_resource_labels" {
33+
type = "map"
34+
description = "Map containing cluster labels. Maximum of 64 labels"
35+
36+
default = {
37+
created-by = "terraform"
38+
}
39+
}
40+
3241
variable "regional" {
3342
description = "Whether is a regional cluster (zonal cluster if set false. WARNING: changing this after cluster creation is destructive!)"
3443
default = true

variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ variable "description" {
2929
default = ""
3030
}
3131

32+
variable "cluster_resource_labels" {
33+
type = "map"
34+
description = "Map containing cluster labels. Maximum of 64 labels"
35+
36+
default = {
37+
created-by = "terraform"
38+
}
39+
}
40+
3241
variable "regional" {
3342
description = "Whether is a regional cluster (zonal cluster if set false. WARNING: changing this after cluster creation is destructive!)"
3443
default = true

0 commit comments

Comments
 (0)