Skip to content

Commit 4b3f609

Browse files
authored
feat: add configconnector to safer variant (#581)
1 parent 1aaecc7 commit 4b3f609

File tree

8 files changed

+26
-0
lines changed

8 files changed

+26
-0
lines changed

autogen/safer-cluster/main.tf.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ module "gke" {
128128

129129
dns_cache = var.dns_cache
130130

131+
config_connector = var.config_connector
132+
131133
default_max_pods_per_node = var.default_max_pods_per_node
132134

133135
database_encryption = var.database_encryption

autogen/safer-cluster/variables.tf.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,9 @@ variable "firewall_inbound_ports" {
360360
description = "List of TCP ports for admission/webhook controllers"
361361
default = ["8443", "9443", "15017"]
362362
}
363+
364+
variable "config_connector" {
365+
type = bool
366+
description = "(Beta) Whether ConfigConnector is enabled for this cluster."
367+
default = false
368+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ For simplicity, we suggest using `roles/container.admin` and
205205
| cloudrun | (Beta) Enable CloudRun addon | string | `"false"` | no |
206206
| cluster\_resource\_labels | The GCE resource labels (a map of key/value pairs) to be applied to the cluster | map(string) | `<map>` | no |
207207
| compute\_engine\_service\_account | Use the given service account for nodes rather than creating a new dedicated service account. | string | `""` | no |
208+
| config\_connector | (Beta) Whether ConfigConnector is enabled for this cluster. | bool | `"false"` | no |
208209
| 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. | object | `<list>` | no |
209210
| default\_max\_pods\_per\_node | The maximum number of pods to schedule per node | string | `"110"` | no |
210211
| description | The description of the cluster | string | `""` | no |

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ module "gke" {
124124

125125
dns_cache = var.dns_cache
126126

127+
config_connector = var.config_connector
128+
127129
default_max_pods_per_node = var.default_max_pods_per_node
128130

129131
database_encryption = var.database_encryption

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,9 @@ variable "firewall_inbound_ports" {
360360
description = "List of TCP ports for admission/webhook controllers"
361361
default = ["8443", "9443", "15017"]
362362
}
363+
364+
variable "config_connector" {
365+
type = bool
366+
description = "(Beta) Whether ConfigConnector is enabled for this cluster."
367+
default = false
368+
}

modules/safer-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ For simplicity, we suggest using `roles/container.admin` and
205205
| cloudrun | (Beta) Enable CloudRun addon | string | `"false"` | no |
206206
| cluster\_resource\_labels | The GCE resource labels (a map of key/value pairs) to be applied to the cluster | map(string) | `<map>` | no |
207207
| compute\_engine\_service\_account | Use the given service account for nodes rather than creating a new dedicated service account. | string | `""` | no |
208+
| config\_connector | (Beta) Whether ConfigConnector is enabled for this cluster. | bool | `"false"` | no |
208209
| 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. | object | `<list>` | no |
209210
| default\_max\_pods\_per\_node | The maximum number of pods to schedule per node | string | `"110"` | no |
210211
| description | The description of the cluster | string | `""` | no |

modules/safer-cluster/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ module "gke" {
124124

125125
dns_cache = var.dns_cache
126126

127+
config_connector = var.config_connector
128+
127129
default_max_pods_per_node = var.default_max_pods_per_node
128130

129131
database_encryption = var.database_encryption

modules/safer-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,9 @@ variable "firewall_inbound_ports" {
360360
description = "List of TCP ports for admission/webhook controllers"
361361
default = ["8443", "9443", "15017"]
362362
}
363+
364+
variable "config_connector" {
365+
type = bool
366+
description = "(Beta) Whether ConfigConnector is enabled for this cluster."
367+
default = false
368+
}

0 commit comments

Comments
 (0)