Skip to content

Commit 13e1a2c

Browse files
committed
add description
1 parent c6d25d0 commit 13e1a2c

File tree

8 files changed

+23
-0
lines changed

8 files changed

+23
-0
lines changed

autogen/safer-cluster/main.tf.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module "gke" {
2626
{% endif %}
2727
project_id = var.project_id
2828
name = var.name
29+
description = var.description
2930
regional = var.regional
3031
region = var.region
3132
zones = var.zones

autogen/safer-cluster/variables.tf.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ variable "name" {
2626
description = "The name of the cluster"
2727
}
2828

29+
variable "description" {
30+
type = string
31+
description = "The description of the cluster"
32+
default = ""
33+
}
34+
2935
variable "regional" {
3036
type = bool
3137
description = "Whether is a regional cluster (zonal cluster if set false. WARNING: changing this after cluster creation is destructive!)"

modules/safer-cluster-update-variant/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ For simplicity, we suggest using `roles/container.admin` and
214214
| database\_encryption | Application-layer Secrets Encryption settings. The object format is {state = string, key\_name = string}. Valid values of state are: "ENCRYPTED"; "DECRYPTED". key\_name is the name of a CloudKMS key. | `list(object({ state = string, key_name = string }))` | <pre>[<br> {<br> "key_name": "",<br> "state": "DECRYPTED"<br> }<br>]</pre> | no |
215215
| datapath\_provider | The desired datapath provider for this cluster. By default, `ADVANCED_DATAPATH` enables Dataplane-V2 feature. `DATAPATH_PROVIDER_UNSPECIFIED` enables the IPTables-based kube-proxy implementation as a fallback since upgrading to V2 requires a cluster re-creation. | `string` | `"ADVANCED_DATAPATH"` | no |
216216
| default\_max\_pods\_per\_node | The maximum number of pods to schedule per node | `number` | `110` | no |
217+
| description | The description of the cluster | `string` | `""` | no |
217218
| disable\_default\_snat | Whether to disable the default SNAT to support the private use of public IP addresses | `bool` | `false` | no |
218219
| dns\_cache | (Beta) The status of the NodeLocal DNSCache addon. | `bool` | `false` | no |
219220
| enable\_cost\_allocation | Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery | `bool` | `false` | no |

modules/safer-cluster-update-variant/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module "gke" {
2222
source = "../beta-private-cluster-update-variant/"
2323
project_id = var.project_id
2424
name = var.name
25+
description = var.description
2526
regional = var.regional
2627
region = var.region
2728
zones = var.zones

modules/safer-cluster-update-variant/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ variable "name" {
2626
description = "The name of the cluster"
2727
}
2828

29+
variable "description" {
30+
type = string
31+
description = "The description of the cluster"
32+
default = ""
33+
}
34+
2935
variable "regional" {
3036
type = bool
3137
description = "Whether is a regional cluster (zonal cluster if set false. WARNING: changing this after cluster creation is destructive!)"

modules/safer-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ For simplicity, we suggest using `roles/container.admin` and
214214
| database\_encryption | Application-layer Secrets Encryption settings. The object format is {state = string, key\_name = string}. Valid values of state are: "ENCRYPTED"; "DECRYPTED". key\_name is the name of a CloudKMS key. | `list(object({ state = string, key_name = string }))` | <pre>[<br> {<br> "key_name": "",<br> "state": "DECRYPTED"<br> }<br>]</pre> | no |
215215
| datapath\_provider | The desired datapath provider for this cluster. By default, `ADVANCED_DATAPATH` enables Dataplane-V2 feature. `DATAPATH_PROVIDER_UNSPECIFIED` enables the IPTables-based kube-proxy implementation as a fallback since upgrading to V2 requires a cluster re-creation. | `string` | `"ADVANCED_DATAPATH"` | no |
216216
| default\_max\_pods\_per\_node | The maximum number of pods to schedule per node | `number` | `110` | no |
217+
| description | The description of the cluster | `string` | `""` | no |
217218
| disable\_default\_snat | Whether to disable the default SNAT to support the private use of public IP addresses | `bool` | `false` | no |
218219
| dns\_cache | (Beta) The status of the NodeLocal DNSCache addon. | `bool` | `false` | no |
219220
| enable\_cost\_allocation | Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery | `bool` | `false` | no |

modules/safer-cluster/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module "gke" {
2222
source = "../beta-private-cluster/"
2323
project_id = var.project_id
2424
name = var.name
25+
description = var.description
2526
regional = var.regional
2627
region = var.region
2728
zones = var.zones

modules/safer-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ variable "name" {
2626
description = "The name of the cluster"
2727
}
2828

29+
variable "description" {
30+
type = string
31+
description = "The description of the cluster"
32+
default = ""
33+
}
34+
2935
variable "regional" {
3036
type = bool
3137
description = "Whether is a regional cluster (zonal cluster if set false. WARNING: changing this after cluster creation is destructive!)"

0 commit comments

Comments
 (0)